1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Author: Francois Marier <francois@debian.org>
Description: Fix links to the local copy of HTML and PDF books
Last-Update: 2012-05-20
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@ $(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml
sed -i -e 's|<a name="_|<a id="|g' -e 's|8230_and_then_some|and_then_some|g' -e 's|#_|#|g' book-$*/*.html
-ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q
./makeover $*
+ sed -i -e 's|book\.html|../gitmagic.html|g' -e 's|book\.pdf|../gitmagic.pdf|g' book-$*/index.html
$(foreach l,$(LANGS),book-$(l)/default.css): book-%/default.css: book.css
-mkdir -p book-$*
|