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

--pete

#!/bin/sh

# this shell script builds and xpi from the cvs source
# it builds it as a static package or non-jar'd
# --pete

# DO NOT EDIT BELOW THIS LINE

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

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

EXT1=.tar.gz;
EXT2=_current_static.xpi
TAR_BALL=$DIRNAME$EXT1;
XPI=${CVS_MOD}$EXT2;

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

if test -r $TARGET_DIR
then
printf "\nRemoving $TARGET_DIR as part of clean up . . . \n"; 
rm -rf $TARGET_DIR;
fi

mkdir $TARGET_DIR;
printf "Creating temp folder $TARGET_DIR . . . \n"; 

${SCRIPT_DIR}/makeDependPkg;

printf "Tarring up package sources for ${PACKAGE_NAME} . . . \n"; 
tar --create --verbose --compress --file=$TARGET_FILE --exclude=CVS install.js $DIRNAME/

cd $TARGET_DIR;

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

wait;

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

if test -r $INS_DIR/$XPI
then
printf "Removing old xpi $INS_DIR/$XPI . . . \n"; 
rm -f $INS_DIR/$XPI;
fi

wait;

mv $DIRNAME ${CVS_MOD};

wait;

printf "Zipping up xpi to $INS_DIR/$XPI . . .\n\n\n\n"; 
zip -r $INS_DIR/$XPI *;

wait;

printf "\n\nFinished creating xpi for \"${CVS_MOD}\"\n";
printf "Location: $INS_DIR/$XPI\n\n";

exit;


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