e052536
#!/bin/bash
e052536
e052536
input="condor_src-$1-all-all.tar.gz"
e052536
e052536
if [ ! -f $input ] ; then
e052536
   echo "$0: $input is not a regular file";
e052536
   exit 1;
e052536
fi
e052536
e052536
echo "Processing $input"
e052536
e052536
echo "...extracting $input"
e052536
tar xzf $input
e052536
e052536
cd condor_src-$1
e052536
e052536
if [ ! -f BUILD-ID ] ; then
e052536
   build="UNKNOWN"
e052536
else
e052536
   build=`cat BUILD-ID`
e052536
fi
e052536
e052536
echo "...recording BUILD-ID: $build"
e052536
e052536
echo "...removing NTconfig directory"
e052536
rm -rf NTconfig
e052536
e052536
echo "...removing all externals except 'man'"
e052536
mv externals/bundles/man externals/
e052536
rm -rf externals/bundles/*
e052536
mv externals/man externals/bundles/
e052536
e052536
echo "...creating condor-$1-$build-RH.tar.gz"
e052536
cd ..
e052536
mv condor_src-$1 condor-$1
e052536
tar czfsp condor-$1-$build-RH.tar.gz condor-$1
e052536
e052536
echo "...cleaning up"
e052536
rm -rf condor-$1
e052536