summaryrefslogblamecommitdiff
path: root/www/tclhttpd/scripts/post-patch
blob: 26de6121b1fd393d7bd7c4eed4b35e9255420c0d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                        
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