diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-21 20:46:16 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-21 20:46:16 +0200 |
commit | 4a8212c9550257d2fe3796a3e9f98e4e0367c38b (patch) | |
tree | 89972d4f0b069c63615673385f74051fd478a90e /source4 | |
parent | 03b328eb90347eb375ca5eff84bec6ea8fa5fb7d (diff) | |
download | samba-4a8212c9550257d2fe3796a3e9f98e4e0367c38b.tar.gz samba-4a8212c9550257d2fe3796a3e9f98e4e0367c38b.tar.bz2 samba-4a8212c9550257d2fe3796a3e9f98e4e0367c38b.zip |
Refuse to install autogenerated proto header files.
(This used to be commit c0a84c2b4698f6ac9b555cc74bed52e5930804d9)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/installheader.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/script/installheader.pl b/source4/script/installheader.pl index d1f96b2592..6b10bde65f 100755 --- a/source4/script/installheader.pl +++ b/source4/script/installheader.pl @@ -60,6 +60,8 @@ sub install_header($$) while (<IN>) { $lineno++; + die("Will not install autogenerated header $src") if (/This file was automatically generated by mkproto.pl. DO NOT EDIT/); + if (/^#include \"(.*)\"/) { print OUT "#include <" . rewrite_include("$src:$lineno", $1) . ">\n"; } else { |