1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/www/tclhttpd/scripts/post-patch
Neil Blakey-Milner 57dc407478 Add tclhttpd, a pure-Tcl implementation of a HTTP server.
PR:		ports/19870
Submitted by:	Mikhail Teterin <mi@privatelabs.com>
2000-07-20 11:55:59 +00:00

19 lines
442 B
Plaintext

if [ ${LOCALBASE} != /usr/local ] ; then
for f in `find ${WRKSRC} -type f | xargs grep -l /usr/local`
do
cp -p $f $f.ul && \
sed "s%/usr/local%${LOCALBASE}%g" < $f.ul > $f \
&& rm -f $f.ul
done
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