[Expat-checkins] expat make-release.sh,1.3,1.4

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Thu Jul 25 08:22:01 2002


Update of /cvsroot/expat/expat
In directory usw-pr-cvs1:/tmp/cvs-serv14052

Modified Files:
	make-release.sh 
Log Message:
When creating a tarball from the HEAD instead of a release tag, use
the date to generate the filename instead of the Expat version
number.  This makes sense since the resulting tarball does not
represent a versioned release.


Index: make-release.sh
===================================================================
RCS file: /cvsroot/expat/expat/make-release.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- make-release.sh	13 Jun 2002 18:12:19 -0000	1.3
+++ make-release.sh	25 Jul 2002 15:21:06 -0000	1.4
@@ -32,7 +32,11 @@
 echo ""
 echo "Release version: $vsn"
 
-distdir=expat-$vsn
+if test "$1" = HEAD ; then
+    distdir=expat-`date '+%Y-%m-%d'`
+else
+    distdir=expat-$vsn
+fi
 if test -e $distdir; then
   echo "ERROR: for safety, you must manually remove $distdir."
   rm -rf $tmpdir