Skip to content

Commit

Permalink
Added script for Wordpress SVN repo
Browse files Browse the repository at this point in the history
  • Loading branch information
arctican committed Aug 4, 2016
1 parent 9f4c66a commit 08639eb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
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
21 changes: 21 additions & 0 deletions convert2svn.sh
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

0 comments on commit 08639eb

Please sign in to comment.