Skip to content

Instantly share code, notes, and snippets.

@anantpatil
Created March 20, 2013 06:09
Show Gist options
  • Save anantpatil/5202662 to your computer and use it in GitHub Desktop.
Save anantpatil/5202662 to your computer and use it in GitHub Desktop.
A script to help create a subversion change-list.
#!/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