]> granicus.if.org Git - libexpat/commitdiff
When creating a tarball from the HEAD instead of a release tag, use
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Thu, 25 Jul 2002 15:21:06 +0000 (15:21 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Thu, 25 Jul 2002 15:21:06 +0000 (15:21 +0000)
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.

expat/make-release.sh

index 28c1de34524a33431690ad35ee78a3de37e78b83..b38757fe25662bb7b788c7e8d466ca2e8c5708da 100755 (executable)
@@ -32,7 +32,11 @@ vsn="`$tmpdir/conftools/get-version.sh $tmpdir/lib/expat.h`"
 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