summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-05-11 21:48:52 +0200
committeryvesf <yvesf-git@xapek.org>2011-05-11 22:55:05 +0200
commitf2254fd02a6f3333123ba77c51b2608611ed7449 (patch)
treef28d975caa75e912f3051407bb18187e69756ebb /make.sh
parente66f1d5e38fb319460a8d7c687568cc3bebb0562 (diff)
downloadstudienarbeit-2011-f2254fd02a6f3333123ba77c51b2608611ed7449.tar.gz
studienarbeit-2011-f2254fd02a6f3333123ba77c51b2608611ed7449.zip
vorab: html version mit pdf download
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/make.sh b/make.sh
new file mode 100755
index 0000000..853db91
--- /dev/null
+++ b/make.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+git cat-file blob master:document.pdf > document.pdf
+nice convert -verbose -density 150 document.pdf -resize 1000 -quality 60 images/image-%03d.jpg
+
+cat > index.html <<"HTML"
+<html>
+<head>
+<title>Studienarbeit 2011 KSM Eclipse-RCP</title>
+<style>
+body {
+text-align: center;
+background-color: efefef;
+}
+</style>
+<script src="js/jquery-1.6.min.js" type="text/javascript"></script>
+<script src="js/jquery.lazyload.js" type="text/javascript"></script>
+<script>
+ $(function() {
+ $("img").lazyload({placeholder:"js/empty.jpg"});
+ });
+</script>
+</head>
+<body>
+<a href="document.pdf">Download als PDF</a>
+<br />
+<br />
+HTML
+
+for image in images/image-*.jpg; do
+ cat >> index.html <<HTML
+<img original="$image" border="0" />
+<br />
+<br />
+HTML
+done
+
+
+cat >> index.html <<HTML
+</body>
+</html>
+HTML