]> git.wh0rd.org - patches.git/blob - man-dont-kill-shebangs.patch
more random patches. who knows.
[patches.git] / man-dont-kill-shebangs.patch
1 --- configure
2 +++ configure
3 @@ -1250,6 +1250,7 @@
4 allargs='$@'
5 infiles='$infiles'
6 infile='$infile'
7 +shebang='`sed -n -e 1p $infile.in`'
8 cb='$cb'
9 cs='$cs'
10 ce='$ce'
11 @@ -1273,7 +1274,11 @@
12 *.1|*.5|*.8|*.man)
13 cb=$mancomment; cs=$mancomment; ce=$mancomment;;
14 *)
15 - cb="#"; cs="#"; ce="#";;
16 + case "$shebang" in
17 + '#!'*) cb="$shebang";;
18 + *) cb="#";;
19 + esac
20 + cs="#"; ce="#";;
21 esac
22 echo "$cb" > $infile
23 echo "$cs Generated automatically from $infile.in by the" >> $infile