added NAME var to dist.sh

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@9623 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2015-05-08 21:49:41 +00:00
parent 08a900399e
commit 8ae197af66

View File

@ -26,6 +26,7 @@
# specified, it will build a release tarball.
#
# To build a Windows package pass -win.
NAME=IPhreeqc
# echo everything
# set -x
@ -123,7 +124,7 @@ else
REPOS_PATH="`echo $REPOS_PATH | sed 's/^\/*//'`"
fi
DISTNAME="IPhreeqc-${VERSION}${VER_NUMTAG}"
DISTNAME="${NAME}-${VERSION}${VER_NUMTAG}"
DIST_SANDBOX=.dist_sandbox
DISTPATH="$DIST_SANDBOX/$DISTNAME"
@ -217,7 +218,7 @@ do
-e "s/@REVISION_SVN@/$REVISION_SVN/g" \
< "$vsn_file" > "$vsn_file.tmp"
mv -f "$vsn_file.tmp" "$vsn_file"
if [ -n "$WIN" ]; then
if [ -n "$WIN" ] && [ "$vsn_file" != "$DISTPATH/configure.ac" ]; then
unix2dos "$vsn_file"
fi
cp "$vsn_file" "$vsn_file.dist"