forked from arctican/developer-portfolio-wp-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore the svn_wp folder which is purely used for | ||
# submitting to the WordPress plugin repository | ||
/svn_wp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Make sure we're in the folder | ||
cd "$(dirname "$0")" | ||
|
||
SVN_DIR=./svn_wp/developer-portfolio | ||
SVN_TRUNK=./svn_wp/developer-portfolio/trunk | ||
|
||
# Clear the trunk, copy the new files over, and add to trunk (will get errors as already there) | ||
rm -R $SVN_TRUNK/* | ||
rsync -av --exclude='.git' --exclude='.gitignore' --exclude='convert2svn.sh' --exclude='svn_wp' ./ $SVN_TRUNK | ||
#svn add trunk/* | ||
|
||
# Get the latest git tag | ||
GIT_TAG=$(git describe --abbrev=0 --tags) | ||
|
||
# Check in changes and tag new version | ||
cd $SVN_DIR | ||
svn ci -m "Adding changes for version $GIT_TAG" | ||
svn cp trunk tags/$GIT_TAG | ||
svn ci -m "Tagging version $GIT_TAG" | ||
|
||
# TODO check if stable tag matches |