Skip to content

Commit 242e47a

Browse files
authored
Merge pull request #43 from DUNE/feature/alister1_update_tagging_script
Update tagging script after Tom tagged v00_02
2 parents 3dfebf3 + 0007b42 commit 242e47a

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

ups/dune_plot_style.table

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ ACTION=SETUP
1717

1818
PathPrepend(PYTHONPATH, ${UPS_PROD_DIR}/python)
1919
PathPrepend(MPLCONFIGDIR, ${UPS_PROD_DIR}/stylelib/)
20+
PathPrepend(ROOT_INCLUDE_PATH, ${UPS_PROD_DIR}/include)

ups/make_dune_plot_style_ups_product.sh

+13-12
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ fi
3737

3838
echo "Tagging ${reponame} ${version}"
3939

40-
source ${path}/setup_dune.sh
41-
setup upd
40+
source /grid/fermiapp/products/dune/setup_dune.sh
4241

4342
echo "Printing active products"
4443
echo "-------------------------------------------"
@@ -66,6 +65,8 @@ mv ${tmpdir}/${reponame}-preorg/src/root/cpp/include ${tmpdir}/${reponame}/
6665
mv ${tmpdir}/${reponame}-preorg/src/__init__.py ${tmpdir}/${reponame}/python/dunestyle/
6766
mv ${tmpdir}/${reponame}-preorg/src/matplotlib/python/* ${tmpdir}/${reponame}/python/dunestyle/matplotlib
6867
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}/
6970
rm -rf ${tmpdir}/${reponame}-preorg
7071

7172
proddir=${path}/${reponame}
@@ -99,6 +100,8 @@ fi
99100
mkdir -p ${dest}
100101
rsync --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
103106
ups_table=${dest}/ups/${reponame}.table
104107
if [ ! -f "${ups_table}" ] ; then
@@ -113,23 +116,21 @@ echo "Updating table file"
113116
sed -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}
131132
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
133134

134135
rm -rf ${tmpdir}
135136

0 commit comments

Comments
 (0)