blob: 7a9f5b55f1ce142c75ff0d0db44479273f65e3ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/sh
n=3
rm -rf build
p=`which python`
case "$p"
in
/usr/stsci/*) : ;;
*)
echo path = $PATH
echo why is python set to $p
exit 1
;;
esac
unset PYTHONPATH
there=/ssbwebv1/data2/steuermann/s$n
rm -rf $there
python setup.py $quiet install --home $there
rm -f /eng/ssb/websites/ssb/steuermann/s$n.cgi
ln -s $there/bin/steuermann_report.cgi /eng/ssb/websites/ssb/steuermann/s$n.cgi
if grep -q s$n.cgi /eng/ssb/websites/ssb/index.html
then
:
else
id=/eng/ssb/websites/ssb
sed 's?<\!--STEUERMANN-->?<\!--STEUERMANN--><a href="steuermann/s'$n'.cgi">s'$n'</a> <br> ?' < $id/index.html > tmp
cp tmp $id/index.html
ls -l $id/index.html
fi
chgrp -R ssb $there
|