[SCM] librobert-hooke-clojure packaging branch, master, updated. debian/1.1.2-1-14-gf5249bb
Wolodja Wentland
debian at babilen5.org
Mon Apr 22 15:51:43 UTC 2013
The following commit has been merged in the master branch:
commit f2e53f607748feef46879ad911441113f80fc6df
Author: Wolodja Wentland <debian at babilen5.org>
Date: Sun Jan 27 21:06:00 2013 +0000
Refactor markdown documentation generation
diff --git a/debian/changelog b/debian/changelog
index ec29710..434dd23 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ robert-hooke (1.3.0-1) UNRELEASED; urgency=low
- Remove Depends on sun-java6-jre
- Update Standards-Version to 3.9.4
* Remove 0001-Add-upstream-changelog.patch
+ * Refactor markdown documentation generation
-- Wolodja Wentland <debian at babilen5.org> Sun, 27 Jan 2013 13:23:51 +0000
robert-hooke (1.1.2-1) unstable; urgency=low
diff --git a/debian/footer.html b/debian/footer.html
new file mode 100644
index 0000000..308b1d0
--- /dev/null
+++ b/debian/footer.html
@@ -0,0 +1,2 @@
+</body>
+</html>
diff --git a/debian/header.html b/debian/header.html
new file mode 100644
index 0000000..c95191c
--- /dev/null
+++ b/debian/header.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+<title>@TITLE@</title>
+</head>
+<body>
diff --git a/debian/rules b/debian/rules
index 6cc2a5b..4521e6f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,13 +35,7 @@ get-orig-source:
uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
%.html:%.md
- @echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' \
- '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' > $@
- @echo "<html>" >> $@
- @echo "<head>" >> $@
- @echo "<title>$(shell head -n 1 $< | sed 's/^#*\s*//')</title>" >> $@
- @echo "</head>" >> $@
- @echo "<body>" >> $@
+ cat debian/header.html > $@
+ sed -i'' -e 's/@TITLE@/$(shell head -n 1 $< | sed 's/^#*\s*//')/g' $@
markdown $< >> $@
- @echo "</body>" >> $@
- @echo "</html>" >> $@
+ cat debian/footer.html >> $@
--
librobert-hooke-clojure packaging
More information about the pkg-java-commits
mailing list