HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/www/tclhttpd/scripts/post-patch
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