summaryrefslogtreecommitdiff
path: root/make.sh
blob: 171041a63130b540d766eb483df0fb0646884bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/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>
<meta charset='utf-8'>
<style>
body {
text-align: center;
background-color: dfdfdf;
}
#bar {
border: 1px solid gray;
background-color: lightGray;
width: 30%;
position: fixed;
top: 4px;
left: 35%;
}
a {
    text-decoration: none;
}
</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>
<div id="bar">
    <a href="http://github.com/dhbw-horb/ksm-rcp">KSM Projektrepository</a>
     • 
    <a href="http://www.ba-horb.de/~ksm">KSM Website</a>
</div>
<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


rm document.pdf