Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
c1bf3558
Commit
c1bf3558
authored
Mar 20, 2007
by
Andrea Sciaba
Browse files
Script to copy to SAM the CMS scripts
parent
5c3ebf37
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/cms2sam.sh
0 → 100755
View file @
c1bf3558
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment