|
Packit |
cdaae3 |
#!/bin/sh
|
|
Packit |
cdaae3 |
#
|
|
Packit |
cdaae3 |
#newpref sets directory name with date, more
|
|
Packit |
cdaae3 |
#like normal linux packages.
|
|
Packit |
cdaae3 |
if [ $# != 1 ]
|
|
Packit |
cdaae3 |
then
|
|
Packit |
cdaae3 |
echo Usage: BLDLIBDWARFTAR yyyymmdd
|
|
Packit |
cdaae3 |
echo Example: BLDLIBDWARFTAR 20040108
|
|
Packit |
cdaae3 |
exit 1
|
|
Packit |
cdaae3 |
fi
|
|
Packit |
cdaae3 |
echo "This does not do UPDATEDWARFDUMPVERSION.sh"
|
|
Packit |
cdaae3 |
echo "Make sure there are no unwanted files"
|
|
Packit |
cdaae3 |
echo "in the code directories as all the files get"
|
|
Packit |
cdaae3 |
echo "copied to the release tar file."
|
|
Packit |
cdaae3 |
dat=$1
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
tmpf=dwarf
|
|
Packit |
cdaae3 |
tmpdir=/var/tmp
|
|
Packit |
cdaae3 |
# cptopublic knows /var/tmp/dwarf is the target
|
|
Packit |
cdaae3 |
sh CPTOPUBLIC nouv
|
|
Packit |
cdaae3 |
newpref=dwarf-${dat}
|
|
Packit |
cdaae3 |
newf=libdwarf-${dat}.tar
|
|
Packit |
cdaae3 |
echo src is $tmpdir/$tmpf tmp is $newpref target is $newf
|
|
Packit |
cdaae3 |
echo ============ $newpref $newf ==========
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
echo First create $tmpdir/$newpref with the latest source.
|
|
Packit |
cdaae3 |
cd $tmpdir
|
|
Packit |
cdaae3 |
if [ ! -d $tmpf ]
|
|
Packit |
cdaae3 |
then
|
|
Packit |
cdaae3 |
echo No $tmpdir/dwarf present! Do nothing.
|
|
Packit |
cdaae3 |
exit 0
|
|
Packit |
cdaae3 |
fi
|
|
Packit |
cdaae3 |
rm -rf $newpref
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
cp -rp $tmpf $newpref
|
|
Packit |
cdaae3 |
# Alter date below before using.e
|
|
Packit |
cdaae3 |
rm -f ${newf} ${newf}.gz
|
|
Packit |
cdaae3 |
tar cf /var/tmp/$newf $newpref
|
|
Packit |
cdaae3 |
gzip ${newf}
|
|
Packit |
cdaae3 |
hm=/home/davea/web4/gweb/pagedata
|
|
Packit |
cdaae3 |
cp ${newf}.gz $hm
|
|
Packit |
cdaae3 |
ls -l $tmpdir/${newf}.gz
|
|
Packit |
cdaae3 |
ls -l $hm/${newf}.gz
|
|
Packit |
cdaae3 |
exit 0
|