summaryrefslogtreecommitdiffstats
path: root/lib/libedit/makelist
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libedit/makelist')
-rw-r--r--lib/libedit/makelist5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist
index 0b2e7a0..7e66b98 100644
--- a/lib/libedit/makelist
+++ b/lib/libedit/makelist
@@ -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");
OpenPOWER on IntegriCloud