updated to create zip

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@9624 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2015-05-08 22:35:01 +00:00
parent 8ae197af66
commit 962a42e2a7

View File

@ -69,6 +69,7 @@ do
;;
-win)
WIN=1
EXTRA_EXPORT_OPTIONS="--native-eol CRLF"
ARG_PREV=""
;;
*)
@ -229,24 +230,47 @@ cp $DISTPATH/phreeqc3-doc/NOTICE.TXT $DISTPATH/doc/NOTICE
(cd "$DISTPATH/doc" && "doxygen")
echo "Rolling $DISTNAME.tar ..."
(cd "$DIST_SANDBOX" > /dev/null && tar c "$DISTNAME") > \
"$DISTNAME.tar"
if [ -n "$WIN" ]; then
echo "Rolling $DISTNAME.zip ..."
(cd "$DIST_SANDBOX" > /dev/null && zip -q -r - "$DISTNAME") > \
"$DISTNAME.zip"
echo "Compressing to $DISTNAME.tar.gz ..."
gzip -9f "$DISTNAME.tar"
echo "Removing sandbox..."
rm -rf "$DIST_SANDBOX"
echo "Removing sandbox..."
rm -rf "$DIST_SANDBOX"
echo ""
echo "Done:"
ls -l "$DISTNAME.tar.gz"
echo ""
echo "md5sums:"
md5sum "$DISTNAME.tar.gz"
type sha1sum > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo ""
echo "sha1sums:"
sha1sum "$DISTNAME.tar.gz"
echo "Done:"
ls -l "$DISTNAME.zip"
echo ""
echo "md5sums:"
md5sum "$DISTNAME.zip"
type sha1sum > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo ""
echo "sha1sums:"
sha1sum "$DISTNAME.zip"
fi
else
echo "Rolling $DISTNAME.tar ..."
(cd "$DIST_SANDBOX" > /dev/null && tar c "$DISTNAME") > \
"$DISTNAME.tar"
echo "Compressing to $DISTNAME.tar.gz ..."
gzip -9f "$DISTNAME.tar"
echo "Removing sandbox..."
rm -rf "$DIST_SANDBOX"
echo ""
echo "Done:"
ls -l "$DISTNAME.tar.gz"
echo ""
echo "md5sums:"
md5sum "$DISTNAME.tar.gz"
type sha1sum > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo ""
echo "sha1sums:"
sha1sum "$DISTNAME.tar.gz"
fi
fi