blob: dbbc243b5631bb4dcf780031b1ace0c1281e74d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
http://bugs.gentoo.org/159192
--- configure
+++ configure
@@ -1250,6 +1250,7 @@
allargs='$@'
infiles='$infiles'
infile='$infile'
+shebang='`sed -n -e 1p $infile.in`'
cb='$cb'
cs='$cs'
ce='$ce'
@@ -1273,7 +1274,11 @@
*.1|*.5|*.8|*.man)
cb=$mancomment; cs=$mancomment; ce=$mancomment;;
*)
- cb="#"; cs="#"; ce="#";;
+ case "$shebang" in
+ '#!'*) cb="$shebang";;
+ *) cb="#";;
+ esac
+ cs="#"; ce="#";;
esac
echo "$cb" > $infile
echo "$cs Generated automatically from $infile.in by the" >> $infile
|