CoCalc Public Fileswww / sga / sga / scripts / makepageOpen in with one click!
Author: William A. Stein
1
#!/bin/sh
2
3
#############################################################
4
# Make a list of html pages associated to a list of SGA tif
5
#
6
# Call with something like makepage *.tif
7
#
8
# William Stein, 10/29/00
9
#############################################################
10
11
book=`basename \`pwd\``
12
13
prev="index."
14
current=`basename $1 tif`
15
for file in $*
16
do
17
next=`basename $file tif`
18
19
../scripts/makepage_individual.py $prev $current $next $book > "$current"html
20
chmod a+w "$current"html
21
22
prev=$current
23
current=$next
24
done
25
26
# process the last page.
27
next=`basename $file tif`
28
../scripts/makepage_individual.py $prev $current $next $book > "$current"html
29
chmod a+w "$current"html
30
31