Created
July 8, 2013 01:28
-
-
Save tnaka/5945645 to your computer and use it in GitHub Desktop.
svnの自動コミットスクリプト
This file contains hidden or 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
#!/bin/bash | |
echo '$ cd /data0' | |
cd /data0 | |
#show status | |
echo '$ svn status' | |
svn status | |
#add new files in a tree | |
echo '$ svn add * --force' | |
svn add * --force | |
#remove deleted files | |
echo '$ svn status | grep '^!' | cut -c9- | xargs -i svn del "{}"' | |
svn status | grep '^!' | cut -c9- | xargs -i svn del "{}" | |
echo '$ svn commit -m "`date`"' | |
svn commit -m "`date`" | |
echo '$ svn up' | |
svn up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment