From c0a84c2b4698f6ac9b555cc74bed52e5930804d9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 21 May 2008 20:46:16 +0200 Subject: [PATCH] Refuse to install autogenerated proto header files. --- source/script/installheader.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/script/installheader.pl b/source/script/installheader.pl index d1f96b2592f..6b10bde65f3 100755 --- a/source/script/installheader.pl +++ b/source/script/installheader.pl @@ -60,6 +60,8 @@ sub install_header($$) while () { $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 {