blob: 5e1e39c3d4525174d269235b2047fa41436f31e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if test "$2" = "POST-INSTALL"; then
YS=$PKG_PREFIX/share/yorick
YH=$PKG_PREFIX/lib/yorick
x=`grep "^Y_HOME = $YH" $YH/Maketmpl`
if test -z "$x"; then
YB=$PKG_PREFIX/lib/yorick/bin
ln -sf $YB/gist $PKG_PREFIX/bin/gist
ln -sf $YB/yorick $PKG_PREFIX/bin/yorick
s="s%^...set_site,.*%set_site, \"$YS\", \"$YH\"\\;%g"
sed -e "$s" $YB/paths.i >$YB/paths.tmp
mv -f $YB/paths.tmp $YB/paths.i
sed -e "s%^Y_SITE = .*%Y_SITE = $YS%g" $YH/Maketmpl >$YH/Maketmpl.tmp
rm -f $YH/Maketmpl
sed -e "s%^Y_HOME = .*%Y_HOME = $YH%g" $YH/Maketmpl.tmp >$YH/Maketmpl
rm -f $YH/Maketmpl.tmp
fi
fi
true
|