fix policy.xml to not have templates for generated interfaces

This commit is contained in:
Chris PeBenito 2005-06-01 17:45:06 +00:00
parent 2fc84fd172
commit 3c62aa31a9
1 changed files with 3 additions and 1 deletions

View File

@ -271,7 +271,9 @@ xml: policy.xml
policy.xml: $(ALL_INTERFACES) tmp/generated_definitions.conf
@echo "Creating $@"
$(QUIET) echo "<policy>" > $@
$(QUIET) egrep -h "^##[[:space:]]" $^ | sed -e 's/^##[[:space:]]//g' >> $@
# process this through m4 to eliminate the generated definitions.
# currently these are only in corenetwork.if
$(QUIET) m4 $^ | egrep -h "^##[[:space:]]" | sed -e 's/^##[[:space:]]//g' >> $@
$(QUIET) echo "</policy>" >> $@
########################################