#!/bin/sh
#
# $NetBSD: post-patch,v 1.3 1999/03/07 16:08:26 hubertf 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
