Fix more weird perl shebang magic.
This commit is contained in:
parent
f0a88eb11a
commit
4389c581d2
@ -251,15 +251,27 @@ sed -i \
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# These two files have a bizarre perl-in-shell shebang setip
|
|
||||||
sed -i -e '1i#!/usr/bin/perl' -e '1,3d' perl/imap/cyradm.sh perl/sieve/scripts/sieveshell.pl
|
|
||||||
|
|
||||||
# The pm files have shebang lines for some reason
|
# The pm files have shebang lines for some reason
|
||||||
sed -i -e '1{/usr.bin.perl/d}' perl/annotator/{Message,Daemon}.pm
|
sed -i -e '1{/usr.bin.perl/d}' perl/annotator/{Message,Daemon}.pm
|
||||||
|
|
||||||
# This one uses env
|
# This one uses env
|
||||||
sed -i -e '1i#!/usr/bin/perl' -e '1d' tools/rehash
|
sed -i -e '1i#!/usr/bin/perl' -e '1d' tools/rehash
|
||||||
|
|
||||||
|
# These files have a bizarre perl-in-shell shebang setup. The exec perl bit
|
||||||
|
# sometimes comes after a long comment block. All use magic to turn on -w.
|
||||||
|
# Some of these aren't installed, but we might as well fix them all just in
|
||||||
|
# case.
|
||||||
|
sed -i \
|
||||||
|
-e '1i#!/usr/bin/perl -w' \
|
||||||
|
-e '/^exec perl/d' \
|
||||||
|
-e '/^#!perl -w/d' \
|
||||||
|
-e '/^#!\/bin\/sh/d' \
|
||||||
|
-e '/^#! \/bin\/sh/d' \
|
||||||
|
snmp/snmpgen perl/sieve/scripts/installsieve.pl \
|
||||||
|
perl/sieve/scripts/sieveshell.pl perl/imap/cyradm.sh tools/config2header \
|
||||||
|
tools/masssievec tools/config2rst tools/mknewsgroups tools/config2sample \
|
||||||
|
tools/config2man tools/mkimap tools/translatesieve
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This is the test suite, which doesn't build much but does verify its dependencies.
|
# This is the test suite, which doesn't build much but does verify its dependencies.
|
||||||
|
Loading…
Reference in New Issue
Block a user