aboutsummaryrefslogblamecommitdiff
path: root/www/tclhttpd/scripts/post-patch
blob: 0ac49a5f89ca4009324e830cc2b21181be379f0b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                        

                                                              










                                                             
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