diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-11-18 12:46:57 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-11-18 12:46:57 +0000 |
commit | b053f43b2219c70c0cc1a3f34a4f424c55183e7c (patch) | |
tree | c18b634ad0aaafe8c536465a62da8e0dd85ff87c /usr.sbin | |
parent | 71ca4f86e0129eaba2d1eb4dada108fab2a8736b (diff) |
Fix file reference in generated comment OK rzalamena@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/switchd/genmap.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/switchd/genmap.sh b/usr.sbin/switchd/genmap.sh index b10b335cabc..c8c4456bb41 100644 --- a/usr.sbin/switchd/genmap.sh +++ b/usr.sbin/switchd/genmap.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: genmap.sh,v 1.2 2016/07/20 19:57:54 reyk Exp $ +# $OpenBSD: genmap.sh,v 1.3 2016/11/18 12:46:56 reyk Exp $ # Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> # @@ -56,13 +56,13 @@ fi TOK=$(echo ${TOKEN} | tr "[:lower:]" "[:upper:]") tok=$(echo ${TOKEN} | tr "[:upper:]" "[:lower:]") INC="#include ${HEADER}" - +FILE=$(basename ${INPUT}) MAP=$(grep "struct constmap ${tok}_" $MAPFILE | sed -Ee "s/.*${tok}_(.+)_map.*/\1/g") # Print license/copyright notice and headers cat <<EOF -/* Automatically generated from $1, do not edit */ +/* Automatically generated from ${FILE}, do not edit */ EOF sed -n '1,/^ \*\//p' $INPUT cat <<EOF |