From 61bbe5312e6bfc70f83a19ec09bb27dad6dc0681 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Jun 13 2005 18:40:08 +0000 Subject: add "this is a generated file!" comment to top of corenetwork.{te,if} --- diff --git a/refpolicy/Makefile b/refpolicy/Makefile index f9a42fc..db8c84e 100644 --- a/refpolicy/Makefile +++ b/refpolicy/Makefile @@ -258,15 +258,23 @@ tmp/all_attrs_types.conf tmp/only_te_rules.conf tmp/all_post.conf: tmp/all_te_fi < tmp/all_te_files.conf > tmp/only_te_rules.conf $(MODDIR)/kernel/corenetwork.if: $(MODDIR)/kernel/corenetwork.if.m4 $(MODDIR)/kernel/corenetwork.if.in - $(QUIET) cat $(MODDIR)/kernel/corenetwork.if.in > $@ + @echo "#" > $@ + @echo "# This is a generated file! Instead of modifying this file, the" >> $@ + @echo "# $(notdir $@).in or $(notdir $@).m4 file should be modified." >> $@ + @echo "#" >> $@ + $(QUIET) cat $(MODDIR)/kernel/corenetwork.if.in >> $@ $(QUIET) egrep "^[[:blank:]]*network_(interface|node|port)\(.*\)" $(@:.if=.te).in \ | m4 $(M4PARAM) -D monolithic_policy $(M4SUPPORT) $(MODDIR)/kernel/corenetwork.if.m4 - \ | sed -e 's/dollarsone/\$$1/g' -e 's/dollarszero/\$$0/g' >> $@ $(QUIET) echo "## " >> $@ $(MODDIR)/kernel/corenetwork.te: $(MODDIR)/kernel/corenetwork.te.m4 $(MODDIR)/kernel/corenetwork.te.in + @echo "#" > $@ + @echo "# This is a generated file! Instead of modifying this file, the" >> $@ + @echo "# $(notdir $@).in or $(notdir $@).m4 file should be modified." >> $@ + @echo "#" >> $@ $(QUIET) m4 $(M4PARAM) -D monolithic_policy $(M4SUPPORT) $^ \ - | sed -e 's/dollarsone/\$$1/g' -e 's/dollarszero/\$$0/g' > $@ + | sed -e 's/dollarsone/\$$1/g' -e 's/dollarszero/\$$0/g' >> $@ ######################################## #