Skip to content

Commit

Permalink
Better cmd for adding new files to svn repo on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
thenbrent committed Mar 30, 2011
1 parent 025c57d commit a91517c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy.sh
Expand Up @@ -54,11 +54,15 @@ echo "Exporting the HEAD of master from git to the trunk of SVN"
git checkout-index -a -f --prefix=$SVNPATH/trunk/

echo "Ignoring github specific files and deployment script"
svn propset svn:ignore "deploy.sh" "$SVNPATH/"
svn propset svn:ignore "readme.md" "$SVNPATH/"
svn propset svn:ignore "deploy.sh" "$SVNPATH/trunk/"
svn propset svn:ignore "README.md" "$SVNPATH/trunk/"
svn propset svn:ignore ".git" "$SVNPATH/trunk/"
svn propset svn:ignore ".gitignore" "$SVNPATH/trunk/"

echo "Changing directory to SVN and committing to trunk"
cd $SVNPATH/trunk/
# Add all new files that are not set to be ignored
svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add
svn commit --username=$SVNUSER -m "$COMMITMSG"

echo "Creating new SVN tag & committing it"
Expand Down

0 comments on commit a91517c

Please sign in to comment.