File: 02-fix_local_book_links.patch

package info (click to toggle)
gitmagic 20120520-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,516 kB
  • sloc: makefile: 88; sh: 38
file content (14 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (2)
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-$*