diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-25 15:06:02 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-25 15:06:02 +0000 |
commit | 7f4b812e2e6183b58e6a691f2357e199bfa77c67 (patch) | |
tree | fedd912dae9766f2ad71e58cefcde14bf7c413b9 /sbin/iked/genmap.sh | |
parent | e36e950ec781bb2b0554b74cc09726e309c62a76 (diff) |
Include the license and copyright notice in the generated files.
Diffstat (limited to 'sbin/iked/genmap.sh')
-rw-r--r-- | sbin/iked/genmap.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/iked/genmap.sh b/sbin/iked/genmap.sh index d1ffbc52b6a..135deb0e7ef 100644 --- a/sbin/iked/genmap.sh +++ b/sbin/iked/genmap.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: genmap.sh,v 1.4 2012/10/25 15:01:56 reyk Exp $ +# $OpenBSD: genmap.sh,v 1.5 2012/10/25 15:06:01 reyk Exp $ # Copyright (c) 2010 Reyk Floeter <reyk@openbsd.org> # @@ -21,8 +21,13 @@ tok=$(echo ${2} | tr "[:upper:]" "[:lower:]") MAP=$(grep "struct iked_constmap" $1 | sed -Ee "s/.*${tok}_([^_]+)_map.*/\1/g") +# Print license/copyright notice and headers cat <<EOF -/* Automatically generated, do not edit */ +/* Automatically generated from $1, do not edit */ +EOF +sed -n '1,/^ \*\//p' $1 +cat <<EOF + #include <sys/param.h> #include <sys/types.h> |