Re: [Xen-devel] [PATCH] xsm/policy: remove gawk-ism line in Makefile

2015-03-05 Thread Ian Campbell
On Tue, 2015-03-03 at 10:16 -0500, Daniel De Graaf wrote:
 On 03/03/2015 07:44 AM, Wei Liu wrote:
  Translate gawk regex to mawk regex to allow using mawk. The new regex
  works on both gawk and mawk.
 
  Signed-off-by: Wei Liu wei.l...@citrix.com
 
 Acked-by: Daniel De Graaf dgde...@tycho.nsa.gov

Applied, thanks.



___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


[Xen-devel] [PATCH] xsm/policy: remove gawk-ism line in Makefile

2015-03-03 Thread Wei Liu
Translate gawk regex to mawk regex to allow using mawk. The new regex
works on both gawk and mawk.

Signed-off-by: Wei Liu wei.l...@citrix.com
Cc: Ian Campbell ian.campb...@citrix.com
Cc: Ian Jackson ian.jack...@eu.citrix.com
Cc: Daniel De Graaf dgde...@tycho.nsa.gov
---
 tools/flask/policy/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/flask/policy/Makefile b/tools/flask/policy/Makefile
index 54a845b..58d9ce1 100644
--- a/tools/flask/policy/Makefile
+++ b/tools/flask/policy/Makefile
@@ -86,7 +86,7 @@ DETECTED_MODS := $(sort $(foreach 
dir,$(ALL_LAYERS),$(wildcard $(dir)/*.te)))
 MODENABLED := on
 
 # extract settings from modules.conf
-ENABLED_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 
== $(MODENABLED)) print $$1 }' $(MOD_CONF) 2 /dev/null),$(subst ./,,$(shell 
find -iname $(mod).te)))
+ENABLED_MODS := $(foreach mod,$(shell awk '/^[ \t]*[a-z]/{ if ($$3 == 
$(MODENABLED)) print $$1 }' $(MOD_CONF) 2 /dev/null),$(subst ./,,$(shell 
find -iname $(mod).te)))
 
 ALL_MODULES := $(filter $(ENABLED_MODS),$(DETECTED_MODS))
 
-- 
1.9.1


___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH] xsm/policy: remove gawk-ism line in Makefile

2015-03-03 Thread Daniel De Graaf

On 03/03/2015 07:44 AM, Wei Liu wrote:

Translate gawk regex to mawk regex to allow using mawk. The new regex
works on both gawk and mawk.

Signed-off-by: Wei Liu wei.l...@citrix.com


Acked-by: Daniel De Graaf dgde...@tycho.nsa.gov

___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel