ci: update scripts
This commit is contained in:
parent
e780d817c1
commit
8a3e9f3067
2 changed files with 5 additions and 4 deletions
|
@ -6,13 +6,13 @@ echo "Building Plugin..."
|
|||
echo "Copying directories..."
|
||||
rm -r dist/
|
||||
mkdir dist
|
||||
cp -r -t dist class/ css/ js/ languages/ templates/
|
||||
cp -r -t dist class/ js/ languages/ templates/
|
||||
# Among the images, only 2 out of 3 are distributed.
|
||||
echo "Copying the needed images..."
|
||||
mkdir -p dist/img
|
||||
cp -t dist/img img/fn-wysiwyg.png
|
||||
echo "Copying files..."
|
||||
cp -t dist license.txt readme.txt includes.php wpml-config.xml SECURITY.md
|
||||
cp -t dist license.txt readme.txt includes.php wpml-config.xml SECURITY.md CHANGELOG.md
|
||||
echo "Setting production flag..."
|
||||
sed "s/'PRODUCTION_ENV', false/'PRODUCTION_ENV', true/g" footnotes.php > dist/footnotes.php
|
||||
echo "Production flag set."
|
||||
|
|
|
@ -202,8 +202,9 @@ echo -e "Local copy created.\n"
|
|||
|
||||
# Step 7(b): Update `trunk/`
|
||||
echo -e "Copying files from \`dist/\` to SVN \`trunk/\`...\n"
|
||||
rsync -avhic dist/ tmp/trunk/ --delete | grep -v "^\."
|
||||
read -p "Does the above list of changes look correct? (Y/N): " CONFIRM && [[ $CONFIRM == [yY] || $CONFIRM == [yY][eE][sS] ]] || exit 1
|
||||
rsync -avhic dist/ tmp/trunk/ | grep -v "^\."
|
||||
#rsync -avhic dist/ tmp/trunk/ --delete | grep -v "^\."
|
||||
read -p "Does the above list of changes (additions and deletions ONLY) look correct? (Y/N): " CONFIRM && [[ $CONFIRM == [yY] || $CONFIRM == [yY][eE][sS] ]] || exit 1
|
||||
echo -e "Copying complete.\n"
|
||||
|
||||
# Step 7(c): Set a release message
|
||||
|
|
Reference in a new issue