Commit 64b9da30 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Script moved to same-cron dir

parent 0abc841b
#!/bin/bash
#
# Script to update the SAM installation with the latest CMS tests from CVS
#
SAME_DIR=$1
TEMPDIR=/tmp
export CVSROOT=:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW
cd $TEMPDIR
rm -rf CMSSAM
cvs co CMSSAM > /dev/null
res=$?
if [ $res != 0 ] ; then
echo "CVS checkout failed"
exit 1
fi
CMS_DIR=$TEMPDIR/CMSSAM/SiteTests
# testjob sensor
sensor='testjob'
modules='FroNtier MonteCarlo testjob'
for i in $modules ; do
cd $CMS_DIR/$i
for j in `find . -not -regex '.*\(CVS\).*'` ; do
if [ -d $j ] ; then
mkdir -p $SAME_DIR/client/sensors/$sensor/$j
else
cp $j $SAME_DIR/client/sensors/$sensor/`dirname $j`
fi
done
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment