Contents of /trunk/man/patches/man-1.6e-dont-kill-shebangs.patch
Parent Directory
|
Revision Log
Revision 324 -
(show annotations)
(download)
Mon Aug 20 16:04:40 2007 UTC (17 years, 1 month ago) by niro
File size: 599 byte(s)
Mon Aug 20 16:04:40 2007 UTC (17 years, 1 month ago) by niro
File size: 599 byte(s)
-missing cron file and added some fixes
1 | http://bugs.gentoo.org/159192 |
2 | |
3 | --- configure |
4 | +++ configure |
5 | @@ -1250,6 +1250,7 @@ |
6 | allargs='$@' |
7 | infiles='$infiles' |
8 | infile='$infile' |
9 | +shebang='`sed -n -e 1p $infile.in`' |
10 | cb='$cb' |
11 | cs='$cs' |
12 | ce='$ce' |
13 | @@ -1273,7 +1274,11 @@ |
14 | *.1|*.5|*.8|*.man) |
15 | cb=$mancomment; cs=$mancomment; ce=$mancomment;; |
16 | *) |
17 | - cb="#"; cs="#"; ce="#";; |
18 | + case "$shebang" in |
19 | + '#!'*) cb="$shebang";; |
20 | + *) cb="#";; |
21 | + esac |
22 | + cs="#"; ce="#";; |
23 | esac |
24 | echo "$cb" > $infile |
25 | echo "$cs Generated automatically from $infile.in by the" >> $infile |