Created
March 13, 2009 02:52
-
-
Save daqing/78410 to your computer and use it in GitHub Desktop.
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 | |
# svn commit wrapper | |
clear | |
echo -e "\n=> status changed:" | |
svn st | less -d | |
svn diff | less -d | |
echo -ne "\n=> do you want to commit? [y/n]: " | |
read i | |
if [ -z "$i" ];then | |
echo -ne "\n=> commit message: " | |
read message | |
if [ -z "$message" ]; then | |
svn commit -m "debug" | |
else | |
svn commit -m "$message" | |
fi | |
fi | |
if [ "$?" == 0 ];then | |
echo -e "\n=> done." | |
else | |
echo -e "\n** commit failed." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment