summaryrefslogtreecommitdiff
path: root/markdown-to-pdf
diff options
context:
space:
mode:
Diffstat (limited to 'markdown-to-pdf')
-rwxr-xr-xmarkdown-to-pdf44
1 files changed, 0 insertions, 44 deletions
diff --git a/markdown-to-pdf b/markdown-to-pdf
deleted file mode 100755
index 732a456..0000000
--- a/markdown-to-pdf
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-set -e
-
-book_prelude()
-{
- cat <<eof
-<html>
-<head>
-<title>Book</title>
-<link rel="stylesheet" href="book.css" type="text/css" />
-</head>
-<body>
-eof
-}
-
-book_end()
-{
- cat <<eof
-</body>
-</html>
-eof
-}
-
-chapter()
-{
- cat <<eof
-<div class="chapter">
-eof
-
- markdown "$1"
-
- cat <<eof
-</div>
-eof
-}
-
-(book_prelude
-for f in "$@"
-do
- chapter "$f"
-done
-book_end) > book.html
-wkhtmltopdf book.html book.pdf