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
3e1318f
#cd condor_src-$1
e8dbbab
cd condor-$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
3e1318f
for f in \
3e1318f
    src/condor_mail \
3e1318f
    src/condor_tests/job_vmu_basic.sh \
3e1318f
    src/condor_tests/job_vmu_cdrom.run \
3e1318f
    src/condor_tests/job_vmu_cdrom.sh \
3e1318f
    src/condor_tests/job_vmu_ckpt.run \
3e1318f
    src/condor_tests/job_vmu_ckpt.sh \
3e1318f
    src/condor_tests/job_vmu_network.key \
3e1318f
    src/condor_tests/job_vmu_network.run \
3e1318f
    src/condor_tests/job_vmu_network.sh \
3e1318f
    src/condor_tests/job_vmu_basic.run \
3e1318f
    src/condor_tests/x_vm_utils.pm \
3e1318f
    src/condor_tests/x_param.vmware \
3e1318f
    src/condor_tests/x_vmware_test_vm.cmd \
3e1318f
    src/condor_tests/x_vmware_configpostsrc \
3e1318f
    src/condor_tests/job_ligo_x86-64-chkpttst.cmd \
3e1318f
    src/condor_tests/job_ligo_x86-64-chkpttst.run \
3e1318f
    src/condor_tests/job_quill_basic.cmd \
3e1318f
    src/condor_tests/job_quill_basic.pl \
3e1318f
    src/condor_tests/job_quill_basic.run \
3e1318f
    src/condor_tests/x_job_quill_basic.template \
3e1318f
    src/condor_tests/x_job_quill_supw \
3e1318f
    src/condor_tests/x_param.quill \
3e1318f
    src/condor_tests/x_postgress_quill.conf \
3e1318f
    src/condor_tests/x_quill_buildperlmods.pl \
3e1318f
    src/condor_tests/x_quill_config_postsrc.template \
3e1318f
    src/condor_tests/x_quill_Expect-1.20.tar.gz \
3e1318f
    src/condor_tests/x_quill_IO-Tty-1.07.tar.gz \
3e1318f
    src/condor_tests/x_quill_pgsqlinstall.pl \
3e1318f
    src/condor_tests/x_quill_pgsqlstop.pl \
3e1318f
    src/condor_tests/x_quill_readline-5.2.tar.gz \
Timothy St. Clair 260c9ce
    src/condor_tests/x_quill_readlineinstall.pl 
3e1318f
do
3e1318f
    echo "...removing $f";
3e1318f
    rm -r $f;
3e1318f
done;
e052536
Matthew Farrellee 78c4620
#echo "...removing all externals except 'man'"
Matthew Farrellee 78c4620
#mv externals/bundles/man externals/
Matthew Farrellee 78c4620
#rm -r externals/bundles/*
Matthew Farrellee 78c4620
#mv externals/man externals/bundles/
e052536
e052536
echo "...creating condor-$1-$build-RH.tar.gz"
e052536
cd ..
3e1318f
#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