diff options
author | yvesf <yvesf-git@xapek.org> | 2011-05-11 21:48:52 +0200 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2011-05-11 22:55:05 +0200 |
commit | f2254fd02a6f3333123ba77c51b2608611ed7449 (patch) | |
tree | f28d975caa75e912f3051407bb18187e69756ebb /make.sh | |
parent | e66f1d5e38fb319460a8d7c687568cc3bebb0562 (diff) | |
download | studienarbeit-2011-f2254fd02a6f3333123ba77c51b2608611ed7449.tar.gz studienarbeit-2011-f2254fd02a6f3333123ba77c51b2608611ed7449.zip |
vorab: html version mit pdf download
Diffstat (limited to 'make.sh')
-rwxr-xr-x | make.sh | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -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 |