freebsd-ports/www/tclhttpd/scripts/post-patch
Mikhail Teterin 554e996bf8 Upgrade devel/tcllib from 1.6 to 1.7 and www/tclhttpd from 3.4.2 to 3.5.1.
Update dependency lines in amsn and tclxml.
2004-11-19 21:36:45 +00:00

14 lines
381 B
Text

if [ ${LOCALBASE} != /usr/local ] ; then
find ${WRKSRC} -type f | xargs grep -l /usr/local |\
xargs sed -i "" -e s%/usr/local%${LOCALBASE}%g
fi
for f in `find ${WRKSRC} -type f | \
xargs grep -l '^exec tclsh.* '`
do
patch --quiet $f << EOP
@@ -1,1 +1,2 @@
-#!/bin/sh
+#!${LOCALBASE}/bin/tclsh${TCL_DVER}
+# The ``exec tclsh<whatever>'' below will simply be ignored.
EOP
done