From afe520ed30715628765e6b5f858d57af487358b6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 4 Jun 2012 11:48:19 -0400 Subject: [PATCH] let's inline the awk it's not *too* ugly (or my ugly tolerance for Makefiles is high) --- Makefile | 2 +- errnos | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100755 errnos diff --git a/Makefile b/Makefile index 41c9c81..e798a98 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ parallel.1: parallel.docbook errno.o: errnos.h errnos.h: echo '#include ' > dump.c - $(CC) -E -dD dump.c | ./errnos > errnos.h + $(CC) -E -dD dump.c | awk '/^#define E/ { printf "{\"%s\",%d},\n", $$2, $$3 }' > errnos.h rm -f dump.c errno.1: errno.docbook diff --git a/errnos b/errnos deleted file mode 100755 index 62a0429..0000000 --- a/errnos +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/awk -f - -/^#define E/ { - printf "{\"%s\",%d},\n", $2, $3 -} - -- 2.39.5