From ad5e831ad03436cf9e3fcfbeb3499c917da575d8 Mon Sep 17 00:00:00 2001 From: Oliver Ferrigni Date: Wed, 1 Feb 2012 14:55:49 -0600 Subject: [PATCH 1/3] Add -e for compliance on mac with sed. Oliver --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db853fa1..4c582a86 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ $(foreach l,$(TRANSLATIONS),$(addprefix $(l)/,$(TXTFILES))): $(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml xmlto -m custom-html.xsl -o book-$* html book-$*.xml - sed -i 's/xmlns:fo[^ ]*//g' book-$*/*.html + sed -i -e 's/xmlns:fo[^ ]*//g' book-$*/*.html -ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q ./makeover $* From 48b316953b7c477e9c076bb6e76a2ee5ffc172b4 Mon Sep 17 00:00:00 2001 From: Oliver Ferrigni Date: Thu, 2 Feb 2012 11:39:57 -0600 Subject: [PATCH 2/3] Corrected to get backup files right. Oliver --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4c582a86..57b1b950 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ $(foreach l,$(TRANSLATIONS),$(addprefix $(l)/,$(TXTFILES))): $(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml xmlto -m custom-html.xsl -o book-$* html book-$*.xml - sed -i -e 's/xmlns:fo[^ ]*//g' book-$*/*.html + sed -i "" -e 's/xmlns:fo[^ ]*//g' book-$*/*.html -ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q ./makeover $* From 7e0bb2d25ca9c9c0e4cf253228e9d27cda3f7b0c Mon Sep 17 00:00:00 2001 From: Oliver Ferrigni Date: Thu, 2 Feb 2012 13:13:05 -0600 Subject: [PATCH 3/3] Eliminted extra space. Oliver --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57b1b950..ca59f306 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ $(foreach l,$(TRANSLATIONS),$(addprefix $(l)/,$(TXTFILES))): $(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml xmlto -m custom-html.xsl -o book-$* html book-$*.xml - sed -i "" -e 's/xmlns:fo[^ ]*//g' book-$*/*.html + sed -i'' -e 's/xmlns:fo[^ ]*//g' book-$*/*.html -ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q ./makeover $*