Update of /cvsroot/mahogany/M/extra/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv22834/extra/scripts

Modified Files:
        makeMtgz 
Log Message:
generate either .gz or .bz2

Index: makeMtgz
===================================================================
RCS file: /cvsroot/mahogany/M/extra/scripts/makeMtgz,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- makeMtgz    28 Jul 2003 20:37:31 -0000      1.4
+++ makeMtgz    28 Jul 2003 22:59:58 -0000      1.5
@@ -26,4 +26,13 @@
 OUTPUT_DIR=${1-`pwd`}
 
+# create tar.gz or tar.bz2?
+if test $USE_BZIP2 != ""; then
+  GZIP=bzip2
+  GZ=bz2
+else
+  GZIP=gzip
+  GZ=gz
+fi
+
 # create temp dir
 if ! mkdir $TMPDIR; then
@@ -52,6 +61,6 @@
 
 mv M $M_FULLNAME
-OUTPUT_FILE=$OUTPUT_DIR/$M_FULLNAME.tar.gz
-if ! tar cf - $M_FULLNAME --exclude="CVS" | gzip -c9 > $OUTPUT_FILE; then
+OUTPUT_FILE=$OUTPUT_DIR/$M_FULLNAME.tar.$GZ
+if ! tar cf - $M_FULLNAME --exclude="CVS" | $GZIP -c9 > $OUTPUT_FILE; then
    echo "Creating $OUTPUT_FILE failed."
    RC=3



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to