Autodetect where perl is.
This commit is contained in:
parent
af0347d903
commit
b71c085cfb
|
@ -6,3 +6,6 @@ errno:
|
||||||
clean:
|
clean:
|
||||||
rm waste
|
rm waste
|
||||||
install: $(BINDIR)/waste
|
install: $(BINDIR)/waste
|
||||||
|
|
||||||
|
%: %.pl patchperl
|
||||||
|
sh ./patchperl $< $@
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
perl=`which perl`
|
||||||
|
if [ $# -ne 2 ]
|
||||||
|
then
|
||||||
|
echo "Usage $0 source target" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ -z "$perl" ]
|
||||||
|
then
|
||||||
|
echo "$0: cannot find perl binary" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sed -e "s,@@@perl@@@,$perl," < $1 > $2
|
||||||
|
exit 0
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/local/bin/perl
|
#!@@@perl@@@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Report wasted space.
|
# Report wasted space.
|
Loading…
Reference in New Issue