Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.

Commit 0c79783

Browse files
authored
Update readme.txt to latest tag (#39)
* update readme * initial pass at readme only update update silence * update readme.txt if current tag already exists
1 parent 8113015 commit 0c79783

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ echo
155155
echo "Creating local copy of SVN repo trunk..."
156156
svn checkout $SVNURL $SVNPATH --depth immediates
157157
svn update --quiet $SVNPATH/trunk --set-depth infinity
158+
svn update --quiet $SVNPATH/tags/$PLUGINVERSION --set-depth infinity
158159

159160
echo "Ignoring GitHub specific files"
160161
# Use local .svnignore if present
@@ -234,6 +235,12 @@ echo
234235

235236
echo "Creating new SVN tag and committing it."
236237
cd $SVNPATH
238+
# If current tag not empty then update readme.txt
239+
if [ -n "$(ls -A tags/$PLUGINVERSION 2>/dev/null)" ]; then
240+
echo "Updating readme.txt to tag $PLUGINVERSION"
241+
svn delete --force tags/$PLUGINVERSION/readme.txt
242+
svn copy trunk/readme.txt tags/$PLUGINVERSION
243+
fi
237244
svn copy --quiet trunk/ tags/$PLUGINVERSION/
238245
# Remove assets and trunk directories from tag directory
239246
svn delete --force --quiet $SVNPATH/tags/$PLUGINVERSION/assets

0 commit comments

Comments
 (0)