summaryrefslogtreecommitdiff
path: root/games/crossfire/scripts/post-patch
diff options
context:
space:
mode:
Diffstat (limited to 'games/crossfire/scripts/post-patch')
-rwxr-xr-xgames/crossfire/scripts/post-patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/crossfire/scripts/post-patch b/games/crossfire/scripts/post-patch
new file mode 100755
index 00000000000..d4f0c67f278
--- /dev/null
+++ b/games/crossfire/scripts/post-patch
@@ -0,0 +1,11 @@
+#!/bin/sh
+#this script changes all the /usr/local/bin/perl stuff to what it should be.
+
+pl=`which perl | sed 's/\//\\\\\\//g'`
+find work -name \*.pl | (
+ while read a; do
+ cp $a tmp
+ sed "s/#! *\/usr\/local\/bin\/perl/#!$pl/" tmp > $a
+ done;
+)
+rm tmp