Revision: | 1.1 |
Committed: | Thu May 6 15:14:20 2010 UTC (14 years, 11 months ago) by mangano |
Content type: | application/x-sh |
Branch: | MAIN |
CVS Tags: | V00-02-00, V00-01-03, V00-01-02, V00-01-01, V00-01-00, V00-00-01, V00-00-00, HEAD |
Log Message: | first commit |
# | User | Rev | Content |
---|---|---|---|
1 | mangano | 1.1 | #!/bin/bash |
2 | |||
3 | if [ -z "$1" ] | ||
4 | then | ||
5 | echo "ERROR: you have to choose between \"cmsRun\" and \"root\" options" | ||
6 | exit | ||
7 | fi | ||
8 | |||
9 | |||
10 | for f in `ls |grep root` | ||
11 | do | ||
12 | case "$1" in | ||
13 | "cmsRun") | ||
14 | location=\"file:$PWD/$f\"\, | ||
15 | echo $location | ||
16 | ;; | ||
17 | |||
18 | |||
19 | "root") | ||
20 | location=fileNames.push_back\(\"$PWD/$f\"\)\; | ||
21 | echo $location | ||
22 | ;; | ||
23 | #--- default | ||
24 | *) | ||
25 | echo "ERROR: specified site name is not in the list" | ||
26 | ;; | ||
27 | esac | ||
28 | done | ||
29 |