File:  [mozdev] / chameleon / scripts / makeZip
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Aug 25 21:58:08 2001 UTC (16 years, 3 months ago) by petejc
Branches: MAIN
CVS tags: HEAD
tweaking build scripts

--pete

#!/bin/sh

#this script makes a zip archive of jslib

INS_DIR=${SRC_DIR}/${CVS_MOD}/www/downloads;

TMP_DIR=/tmp/${CVS_MOD}_current_zip;

TAR_BALL=${CVS_MOD}_current.tgz;

ZIP_FILE=${CVS_MOD}_current.zip

printf "Creating zip archive of ${CVS_MOD} . . . \n\n";

if test -r $TMP_DIR
then
rm -rf $TMP_DIR;
fi

mkdir $TMP_DIR;

cd ${SRC_DIR}/$CVS_MOD/${PACKAGE_NAME};

tar --create --verbose --compress --exclude=CVS --file=$TMP_DIR/$TAR_BALL ${PACKAGE_NAME} ${PACKAGE_2_NAME};

cd $TMP_DIR;

tar xfz $TAR_BALL;

mv ${PACKAGE_NAME} ${CVS_MOD};

if test -r $INS_DIR/$ZIP_FILE
then
rm -f $INS_DIR/$ZIP_FILE
fi

zip -r $INS_DIR/$ZIP_FILE ${CVS_MOD} ${PACKAGE_2_NAME}; 

#rm -rf $TMP_DIR;

printf "Finished: zip file installed in $INS_DIR/$ZIP_FILE\n\n";

exit;


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>