mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 11:02:44 +00:00
Reorder decomposition of the filename argument for the '-h' flag to
avoid misprocessing in the case where the filename argument contains more than one period. Submitted by: micke@dynas.se (Mikael Hybsch)
This commit is contained in:
parent
9325ae34de
commit
194fb96e6a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27631
@ -54,11 +54,12 @@ FILES="$@"
|
||||
|
||||
case $FLAG in
|
||||
-h)
|
||||
fn=`basename $FILES`
|
||||
OIFS="$IFS"
|
||||
IFS=".$IFS"
|
||||
set - $FILES
|
||||
set - $fn
|
||||
IFS="$OIFS"
|
||||
hdr="_h_`basename $1`_$2"
|
||||
hdr="_h_$1_$2"
|
||||
cat $FILES | $AWK '
|
||||
BEGIN {
|
||||
printf("/* Automatically generated file, do not edit */\n");
|
||||
|
Loading…
Reference in New Issue
Block a user