mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-17 02:34:36 +00:00
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:
parent
93deea5e26
commit
092a369ad2
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue