1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/lang/yorick/pkg-install
Kevin Lo d7a85c76ca - Update to 1.5.08
- Takeover maintainership

PR: 34616
Submitted by: David H. Munro <munro1@llnl.gov>
2002-02-09 09:16:00 +00:00

20 lines
636 B
Bash

#!/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