37
37
38
38
echo " Tagging ${reponame} ${version} "
39
39
40
- source ${path} /setup_dune.sh
41
- setup upd
40
+ source /grid/fermiapp/products/dune/setup_dune.sh
42
41
43
42
echo " Printing active products"
44
43
echo " -------------------------------------------"
@@ -66,6 +65,8 @@ mv ${tmpdir}/${reponame}-preorg/src/root/cpp/include ${tmpdir}/${reponame}/
66
65
mv ${tmpdir} /${reponame} -preorg/src/__init__.py ${tmpdir} /${reponame} /python/dunestyle/
67
66
mv ${tmpdir} /${reponame} -preorg/src/matplotlib/python/* ${tmpdir} /${reponame} /python/dunestyle/matplotlib
68
67
mv ${tmpdir} /${reponame} -preorg/src/root/python/* ${tmpdir} /${reponame} /python/dunestyle/root
68
+ mv ${tmpdir} /${reponame} -preorg/examples ${tmpdir} /${reponame} /
69
+ mv ${tmpdir} /${reponame} -preorg/ups/ ${tmpdir} /${reponame} /
69
70
rm -rf ${tmpdir} /${reponame} -preorg
70
71
71
72
proddir=${path} /${reponame}
99
100
mkdir -p ${dest}
100
101
rsync --exclude ' *~' --exclude ' *.git' -rL $tmpdir /${reponame} /* ${dest}
101
102
103
+ chmod o+rx ${dest}
104
+
102
105
# update the ups table to give the correct version number
103
106
ups_table=${dest} /ups/${reponame} .table
104
107
if [ ! -f " ${ups_table} " ] ; then
@@ -113,23 +116,21 @@ echo "Updating table file"
113
116
sed -i -e " s:XXVERSIONXX:${version} :" \
114
117
${ups_table}
115
118
116
- echo" Declaring product ${reponame} with version ${version} to UPS."
119
+ echo " Declaring product ${reponame} with version ${version} to UPS."
117
120
118
121
# declare to ups
119
- ups declare -f NULL -z ${path} \
120
- -r ${path} /${reponame} /${version} /NULL \
122
+ ups declare -f NULL -z ${path} -c \
123
+ -r ${path} /${reponame} /${version} / \
121
124
-m ${reponame} .table \
122
125
${reponame} ${version}
123
126
124
- retval=$?
125
- test $retval -ne 0 && echo " Error! 'ups declare' returned non-zero - BAILING" && exit 1
127
+ # I am sure there's a nicer way to do this but for now...
128
+ mv ${path} /${reponame} /${version} .version ${path} /${reponame} /NULL
129
+ mkdir ${path} /${reponame} /${version} .version/
130
+ mv ${path} /${reponame} /NULL ${path} /${reponame} /${version} .version/
126
131
127
- # add to upd
128
- cd ${proddir} /${version} /NULL/
129
-
130
- upd addproduct ${reponame} ${version}
131
132
retval=$?
132
- test $retval -ne 0 && echo " Error! 'upd addproduct ' returned non-zero - BAILING" && exit 1
133
+ test $retval -ne 0 && echo " Error! 'ups declare ' returned non-zero - BAILING" && exit 1
133
134
134
135
rm -rf ${tmpdir}
135
136
0 commit comments