Merge branch 'master' of git://git.experimentalworks.net/gc-utils
[gc-utils.git] / gc-update.sh
blobceb9949bd7acf6eb1e63db82e472372bccaa2c65
1 #!/bin/sh
2 VERSION="$VERSION$
3 PROGNAME="$PROGNAME"
5 version ()
6 {
7 echo "$PROGNAME: "`basename $0`-$VERSION
10 usage ()
12 echo "Usage: "`basename $0`" [OPTIONS]"
13 echo "Options are:"
14 echo " -h show help"
15 echo " -v verbosity"
16 echo " -gn do not try to merge based on commit messages"
17 echo " -V show version information"
18 echo
19 exit 127
22 merge="-m"
23 verbose=
24 while test $# != 0
26 case "$1" in
27 -gn)
28 merge=
30 -v)
31 verbose="-v"
33 -h)
34 usage
36 -V)
37 version
38 exit 127
40 -*)
41 echo >&2 "Parameter $1 is not known."
42 usage
44 esac
45 shift
46 done
49 if test ! ".cvs" -o ! -d ".cvs/CVS/"
50 then
51 echo >&2 "Cannot found .cvs directory"
52 exit 127
55 CVSROOT=`cat .cvs/CVS/Root`
56 MODULE=`cat .cvs/CVS/Repository`
58 echo "Repository: $CVSROOT"
59 echo "Module: $MODULE"
61 <<<<<<< HEAD:gc-update.sh
62 git-cvsimport $merge $verbose -d $CVSROOT "$MODULE"
63 =======
64 git-cvsimport $merge $verbose -d $CVSROOT "$MODULE"
65 >>>>>>> 5de35c4dc97857e0e2a9fc7dd2dc43be43406a4f:gc-update.sh