summaryrefslogtreecommitdiff
path: root/games/crossfire-srv/scripts/post-patch
diff options
context:
space:
mode:
Diffstat (limited to 'games/crossfire-srv/scripts/post-patch')
-rwxr-xr-xgames/crossfire-srv/scripts/post-patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/crossfire-srv/scripts/post-patch b/games/crossfire-srv/scripts/post-patch
new file mode 100755
index 00000000000..139d9dd11cc
--- /dev/null
+++ b/games/crossfire-srv/scripts/post-patch
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $NetBSD: post-patch,v 1.1.1.1 2000/12/13 08:18:06 garbled Exp $
+#
+#this script changes all the /usr/local/bin/perl stuff to what it should be.
+
+pl=`which perl | sed 's/\//\\\\\\//g'`
+find ${WRKDIR} -name \*.pl | (
+ while read a; do
+ cp $a tmp
+ sed "s/#! *\/usr\/local\/bin\/perl/#!$pl/" tmp > $a
+ done;
+)
+rm tmp