]> git.armaanb.net Git - bin.git/blob - kiss-git
xsel: new script
[bin.git] / kiss-git
1 #!/usr/bin/sh -e
2
3 gitcmd() {
4         version=$(cut -d ' ' -f 1 $2/version)
5         pkg=$(printf %s "$2" | sed 's|/||g')
6         git add $2
7 }
8
9 case $1 in
10         new) gitcmd $@ && git commit -m "$pkg: new package at $version" ;;
11         bump) gitcmd $@ && git commit -m "$pkg: bump to $version" ;;
12         *) printf "No such subcommand.\n"; exit 1 ;;
13 esac