File: 02-fix_local_book_links.patch

package info (click to toggle)
gitmagic 20100608-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 340 kB
  • ctags: 14
  • sloc: makefile: 61; sh: 33
file content (13 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Author: Francois Marier <francois@debian.org>
Description: Fix links to the local copy of HTML and PDF books

--- gitmagic.orig/Makefile
+++ gitmagic/Makefile
@@ -21,6 +21,7 @@ book.xml: $(TXTFILES)
 	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
 
 book/default.css: book.css
 	-mkdir book