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.
This commit is contained in:
Fred L. Drake, Jr. 2002-07-25 15:21:06 +00:00
parent 93deea5e26
commit 092a369ad2

View file

@ -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