3737
3838echo " Tagging ${reponame} ${version} "
3939
40- source ${path} /setup_dune.sh
41- setup upd
40+ source /grid/fermiapp/products/dune/setup_dune.sh
4241
4342echo " Printing active products"
4443echo " -------------------------------------------"
@@ -66,6 +65,8 @@ mv ${tmpdir}/${reponame}-preorg/src/root/cpp/include ${tmpdir}/${reponame}/
6665mv ${tmpdir} /${reponame} -preorg/src/__init__.py ${tmpdir} /${reponame} /python/dunestyle/
6766mv ${tmpdir} /${reponame} -preorg/src/matplotlib/python/* ${tmpdir} /${reponame} /python/dunestyle/matplotlib
6867mv ${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} /
6970rm -rf ${tmpdir} /${reponame} -preorg
7071
7172proddir=${path} /${reponame}
99100mkdir -p ${dest}
100101rsync --exclude ' *~' --exclude ' *.git' -rL $tmpdir /${reponame} /* ${dest}
101102
103+ chmod o+rx ${dest}
104+
102105# update the ups table to give the correct version number
103106ups_table=${dest} /ups/${reponame} .table
104107if [ ! -f " ${ups_table} " ] ; then
@@ -113,23 +116,21 @@ echo "Updating table file"
113116sed -i -e " s:XXVERSIONXX:${version} :" \
114117 ${ups_table}
115118
116- echo" Declaring product ${reponame} with version ${version} to UPS."
119+ echo " Declaring product ${reponame} with version ${version} to UPS."
117120
118121# 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} / \
121124 -m ${reponame} .table \
122125 ${reponame} ${version}
123126
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/
126131
127- # add to upd
128- cd ${proddir} /${version} /NULL/
129-
130- upd addproduct ${reponame} ${version}
131132retval=$?
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
133134
134135rm -rf ${tmpdir}
135136
0 commit comments