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

--pete

#!/bin/sh

#this script makes a tgz tarball of aphrodite

ins_dir=${inst_dir}/downloads;

tmp_dir=${sys_tmp}/${code_name}_tarball;
tar_ball=${code_name}_current.tgz;

printf "Creating tarball of aphrodite . . . \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;

if test ${package_name} != ${code_name}; then
  mv ${package_name} ${code_name};
fi

tar cfz $ins_dir/$tar_ball ${code_name}; 

rm -rf $tmp_dir;

printf "Finished: tarball installed in $ins_dir/$tar_ball\n\n";

exit;


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