Skip to content

Instantly share code, notes, and snippets.

@tnaka
Created July 8, 2013 01:28
Show Gist options
  • Save tnaka/5945645 to your computer and use it in GitHub Desktop.
Save tnaka/5945645 to your computer and use it in GitHub Desktop.
svnの自動コミットスクリプト
#!/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