From e53bc08362741d0f7a24f96b6b3800c7313b46e4 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Wed, 9 Apr 2003 10:08:58 +0000 Subject: - Remove awk hacks in Makefile.in with shell loop and sed hack: The awk hack(s) didn't work for Martin Quinson. --- Makefile.in | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index e2cc544..c5e5d1c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -104,9 +104,17 @@ rpm : $(PACKAGE)-$(VERSION).tar.gz rpm -tb $< doc/README : doc/README.in - @awk '/@REFERENCE''@/ { system("$(MAKE) -s reference") ; \ - next }'$$'\n'' \ - { print }' 2>&1 $< > $@ + @echo README.in -> README + @while read line; do \ + case "$$line" in \ + '@REFERENCE''@') \ + $(MAKE) -s reference \ + ;; \ + *) \ + echo $$line \ + ;; \ + esac ; \ + done 2>&1 < $< > $@ .PHONY :: reference reference : $(QUILT:%=quilt/%) @@ -116,9 +124,9 @@ reference : $(QUILT:%=quilt/%) echo; \ (bash -c ". scripts/patchfns ; . $$i -h"); \ done | \ - awk '/Usage:/ { sub(/Usage: ?/, "") ; print ; next } '$$'\n'' \ - { printf " %s\n", $$0 }' - + sed -e '/^Usage: \?/ {s/^Usage: \?// ; p ; d}' \ + -e 's/^/ /' + bin/guards.1 : bin/guards mkdir -p $$(dirname $@) pod2man $< > $@ -- cgit