File:  [mozdev] / aphrodite / scripts / makeZip
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Apr 3 13:57:22 2002 UTC (15 years, 8 months ago) by petejc
Branches: MAIN
CVS tags: HEAD
adding build scripts

--pete

#!/bin/sh

#this script makes a zip archive of jslib

ins_dir=${inst_dir}/downloads;

tmp_dir=${sys_tmp}/${code_name}_current_zip;

tar_ball=${code_name}_current.tgz;

zip_file=${code_name}_current.zip

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

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

mkdir $tmp_dir;

cd ${top_srcdir};

tar --create --compress --exclude=CVS --file=$tmp_dir/$tar_ball ${package_name};

cd $tmp_dir;

tar xfz $tar_ball;

mv ${package_name} ${code_name};

if test -r $ins_dir/$zip_file
then
rm -f $ins_dir/$zip_file
fi

zip -r $ins_dir/$zip_file ${code_name}; 

rm -rf $tmp_dir;

printf "Finished: zip file installed in $ins_dir/$zip_file\n\n";

exit;


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