CoCalc Public Fileswww / sga / sga / scripts / makenothumbindexOpen in with one click!
Author: William A. Stein
1
#!/bin/sh
2
3
#############################################################
4
# Make a thumbnail index
5
#
6
# Call with something like makethumbindex *.tif
7
#
8
# William Stein, 10/29/00
9
#############################################################
10
11
book=`basename \`pwd\``
12
13
14
echo \<html\>
15
echo \<title\>SGA $book\</title\>
16
echo \<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"../sga.css\" TITLE=\"index.html\"\>
17
echo \<body\>
18
echo \<center\>
19
echo \<h1\>SGA $book\</h1\>
20
echo \</center\>
21
22
echo \<a href=\"../index.html\"\>[Up]\</a\>
23
echo \&nbsp\&nbsp\&nbsp\&nbsp\<a href=\"thumbindex.html\"\>[Thumbnail Index]\</a\>\<hr\>
24
25
i=0
26
echo \<table\>\<tr\>
27
28
for file in $*
29
do
30
base=`basename $file tif`
31
thumb=thumb_"$base"jpeg
32
html="$base"html
33
name=`basename $base .`
34
35
# echo \<td\>\<table\>\<tr\>\<td\>\<a href=$html target=\"_new\"\>
36
# echo \<img align=bottom src=$thumb\>\</a\>\</td\>\</tr\>
37
# echo \<tr\>\<td\>$name\</td\>\</tr\>\</table\>\</td\>
38
39
echo \<td\>\<table\>\<tr\>\<td\>\<a href=$html target=\"_new\"\>
40
echo $name\</a\>\</td\>\</tr\>\</table\>\</td\>
41
42
i=`echo "($i + 1) % 6" | bc`
43
if test $i -eq 0; then
44
echo \</tr\>\<tr\>
45
fi
46
done
47
48
echo \</table\>
49
50