Created
March 20, 2013 06:09
-
-
Save anantpatil/5202662 to your computer and use it in GitHub Desktop.
A script to help create a subversion change-list.
This file contains 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
#!/usr/bin/env bash | |
cl=$1 | |
if [ "$cl" = "" ];then | |
echo "CL name not specified." | |
exit 1 | |
fi | |
svn st | | |
grep "^[M|A|D]" | | |
cut -c9- | | |
while read file | |
do | |
echo -ne "Add to change list $cl: $file? (y/n)\n" | |
read -s -n 1 answer <&1 | |
case $answer in | |
[Yy] ) svn cl $cl $file | |
;; | |
* ) ;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment