File:  [mozdev] / chameleon / scripts / makeTarball
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 tgz tarball of a package

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

TMP_DIR=/tmp/${CVS_MOD}_tarball;
TAR_BALL=${CVS_MOD}_current.tgz;

printf "Creating tarball 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};

tar cfz $INS_DIR/$TAR_BALL ${CVS_MOD} ${PACKAGE_2_NAME}; 

rm -rf $TMP_DIR;

printf "Finished: tarball installed in $INS_DIR/$TAR_BALL\n\n";

exit;


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