Fix more weird perl shebang magic.

This commit is contained in:
Jason Tibbitts 2018-06-13 19:32:29 -05:00
parent f0a88eb11a
commit 4389c581d2

View File

@ -251,15 +251,27 @@ sed -i \
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
sed -i -e '1{/usr.bin.perl/d}' perl/annotator/{Message,Daemon}.pm
# This one uses env
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
# This is the test suite, which doesn't build much but does verify its dependencies.