trunk: Add iferror.m4 rather generate it out of the Makefiles.
This commit is contained in:
parent
210607be61
commit
e276d50e21
@ -1,3 +1,4 @@
|
||||
- Add iferror.m4 rather generate it out of the Makefiles.
|
||||
- Definitions for open permisson on file and similar objects from Eric
|
||||
Paris.
|
||||
- Apt updates for ptys and logs, from Martin Orr.
|
||||
|
1
Makefile
1
Makefile
@ -101,6 +101,7 @@ setbools := $(AWK) -f $(support)/set_bools_tuns.awk
|
||||
get_type_attr_decl := $(SED) -r -f $(support)/get_type_attr_decl.sed
|
||||
comment_move_decl := $(SED) -r -f $(support)/comment_move_decl.sed
|
||||
gennetfilter := $(PYTHON) -E $(support)/gennetfilter.py
|
||||
m4iferror := $(support)/iferror.m4
|
||||
# use our own genhomedircon to make sure we have a known usable one,
|
||||
# so policycoreutils updates are not required (RHEL4)
|
||||
genhomedircon := $(PYTHON) -E $(support)/genhomedircon
|
||||
|
@ -136,11 +136,10 @@ $(tmpdir)/global_bools.conf: M4PARAM += -D self_contained_policy
|
||||
$(tmpdir)/global_bools.conf: $(m4support) $(tmpdir)/generated_definitions.conf $(globalbool) $(globaltun)
|
||||
$(verbose) $(M4) $(M4PARAM) $^ > $@
|
||||
|
||||
$(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces)
|
||||
$(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) $(m4iferror)
|
||||
@test -d $(tmpdir) || mkdir -p $(tmpdir)
|
||||
@echo "ifdef(\`__if_error',\`m4exit(1)')" > $(tmpdir)/iferror.m4
|
||||
@echo "divert(-1)" > $@
|
||||
$(verbose) $(M4) $^ $(tmpdir)/iferror.m4 >> $(tmpdir)/$(@F).tmp
|
||||
$(verbose) $(M4) $^ >> $(tmpdir)/$(@F).tmp
|
||||
$(verbose) $(SED) -e s/dollarsstar/\$$\*/g $(tmpdir)/$(@F).tmp >> $@
|
||||
@echo "divert" >> $@
|
||||
|
||||
|
@ -124,11 +124,10 @@ $(tmpdir)/generated_definitions.conf: $(all_te_files)
|
||||
$(tmpdir)/global_bools.conf: $(m4support) $(tmpdir)/generated_definitions.conf $(globalbool) $(globaltun)
|
||||
$(verbose) $(M4) $(M4PARAM) $^ > $@
|
||||
|
||||
$(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces)
|
||||
$(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) $(m4iferror)
|
||||
@test -d $(tmpdir) || mkdir -p $(tmpdir)
|
||||
@echo "ifdef(\`__if_error',\`m4exit(1)')" > $(tmpdir)/iferror.m4
|
||||
@echo "divert(-1)" > $@
|
||||
$(verbose) $(M4) $^ $(tmpdir)/iferror.m4 >> $(tmpdir)/$(@F).tmp
|
||||
$(verbose) $(M4) $^ >> $(tmpdir)/$(@F).tmp
|
||||
$(verbose) $(SED) -e s/dollarsstar/\$$\*/g $(tmpdir)/$(@F).tmp >> $@
|
||||
@echo "divert" >> $@
|
||||
|
||||
|
1
support/iferror.m4
Normal file
1
support/iferror.m4
Normal file
@ -0,0 +1 @@
|
||||
ifdef(`__if_error',`m4exit(1)')
|
Loading…
Reference in New Issue
Block a user