]> err.no Git - systemd/commitdiff
Makefile.am: fix build with mawk
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 30 Oct 2009 08:38:21 +0000 (09:38 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 30 Oct 2009 08:38:21 +0000 (09:38 +0100)
Don't use the [[:space:]] syntax in awk calls' regex, since that's GNU awk
specific. Thanks to Alan Jenkins for finding this.

Makefile.am

index a6043371cf2d71784c69dddbece3cb6d0b243271..84f165476d33aa55dc10c159d05b64d51f44a7f2 100644 (file)
@@ -530,7 +530,7 @@ dist_udevkeymap_DATA = \
        extras/keymap/keymaps/zepto-znote
 
 extras/keymap/keys.txt: /usr/include/linux/input.h
-       $(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[[:space:]]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
+       $(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
 
 extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt
        $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@