2 # Copyright (c) 2008 David Soria Parra <dsp at php dot net>
4 # Licensed under the terms of the MIT License
5 # See /usr/share/doc/gcutils/copyright
6 # or http://www.opensource.org/licenses/mit-license.php
13 git
--version > /dev
/null
17 echo >&2 "Git not found. It's either not installed or not in \$PATH"
21 version
=`git --version | grep -o "[12]\.[5-9]\.[0-9]"`
24 echo "Wrong git version. $prog needs git 1.5.0 or higher, but "`git --version`" found."
31 echo "$PROGNAME: "`basename $0`-$VERSION
34 COMMANDS
="gc-commit gc-import gc-multi-commit gc-update"
38 echo "$PROGNAME: $VERSION"
39 echo "available commands"
42 echo -n " " && whatis $cmd | cut
-b 4-
53 if test "$cmd" = "gc-$2"
59 echo "Command $2 not found" 1>&2
65 if test "$cmd" = "gc-$1"
72 echo "Command $1 not found" 1>&2