File:  [mozdev] / chameleon / scripts / makeDependPkg
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Aug 25 22:01:41 2001 UTC (16 years, 3 months ago) by petejc
Branches: MAIN
CVS tags: HEAD
adding script that builds tb_tmp chrome package
this was originally globbed in w/ chameleon build script

--pete

#!/bin/sh

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

printf "\nCreating xpi for ${CVS_MOD}\n\n";

EXT1=.tar.gz;
EXT2=_current.xpi
TAR_BALL=${PACKAGE_2_NAME}$EXT1;
XPI=${CVS_MOD}$EXT2;

TARGET_DIR=/tmp/xpi;
TARGET_FILE=$TARGET_DIR/$TAR_BALL;

if test -r $TARGET_DIR
then

printf "Tarring up package sources for ${PACKAGE_2_NAME} . . . \n";
tar --create --gzip --file=$TARGET_FILE --exclude=CVS ${PACKAGE_2_NAME}/

cd $TARGET_DIR;

printf "Extracting package sources for ${PACKAGE_2_NAME} in temp folder $TARGET_DIR . . . \n"; 
tar xfz $TAR_BALL;

wait;

printf "Removing temp tarball $TAR_BALL . . . \n"; 
rm $TAR_BALL;

else
printf "Sorry $TARGET_DIR doesn't exist . . .\n";
fi

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