summaryrefslogtreecommitdiff
path: root/games/crossfire-srv/scripts/post-patch
blob: 139d9dd11cc9bb865254c97d73bd58e53c8889ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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