3 if [ -z "$CVSROOT" ] ; then
4 CVSROOT
=":ext:ndprojects@barry.cvs.sourceforge.net:/cvsroot/barry"
6 if [ -z "$CVSREP" ] ; then
11 echo "Pulling from: $CVSROOT"
12 echo "Using directory: $CVSREP"
14 if [ -z "$1" -o -z "$2" ] ; then
16 echo "Usage: ./make-release-tar.sh MAJOR MINOR"
18 echo " ./make-release-tar.sh MAJOR MINOR HEAD"
20 echo "MAJOR is the desired major version number"
21 echo "MINOR is the desired minor version number"
22 echo "HEAD is a literal string to override the default behaviour"
23 echo " of retrieving the CVS tagged major/minor revision, and"
24 echo " instead, just fetching the HEAD version, and packaging"
25 echo " it up as version MAJOR.MINOR."
27 echo "Set the environment var CVSROOT to use a different repository."
28 echo "Set CVSREP to a different directory if needed."
41 if [ "$3" != "HEAD" ] ; then
42 cvs
-z3 -d "$CVSROOT" co
-d $DIRNAME -r $TAGNAME "$CVSREP"
43 echo "Fetched tag: $TAGNAME"
45 cvs
-z3 -d "$CVSROOT" co
-d $DIRNAME "$CVSREP"
48 (cd $DIRNAME && .
/buildgen.sh
)
49 (cd $DIRNAME/gui
&& .
/buildgen.sh
)
50 (cd $DIRNAME/opensync-plugin
&& .
/buildgen.sh
)
51 rm -rf "$DIRNAME/autom4te.cache" "$DIRNAME/gui/autom4te.cache" "$DIRNAME/opensync-plugin/autom4te.cache"
52 tar --exclude=CVS
-cvf - $DIRNAME |
bzip2 -9c > barry-
$1.
$2.
tar.bz2