#!/bin/sh # # drft06trr_dredge - make a DRFT06RR Dredge web page (drft06rr.D-XXX.html) # # This script creates a drft06rr.D-XXX.html file (XXX is dredge ID) pointed to by the smt html pages. # # Paul Wessel, 20-NOV-2001 # H=drft06rr #--------------------------- mkdir -p $H cd $H mkdir -p dredges date=`date` # # Makes the html files for a single Dredge D=$1 smt=`echo $D | awk '{if ($1 == "'$D'") print $2}' ../drft06rr_dredges.lis` box=`echo $D | awk '{if ($1 == "'$D'") print $3}' ../drft06rr_dredges.lis` cat << EOF > dredges/$H.D-$D.html Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Dredge D-$D

Drift Expedition Leg 6: The Easter/Salas y Gomez/Nazca Survey - Dredge D-$D

EOF if [ -f dredges/$H.D-$D.map.gif ]; then cat << EOF >> dredges/$H.D-$D.html
Dredge map $D

EOF else echo "

No dredge map available yet

" >> dredges/$H.D-$D.html fi cat << EOF >> dredges/$H.D-$D.html

Click the icons to select another file format for the dredge map above: PDF map EPS map

Click on the links below to select a specific document:

EOF # Only add links to documents that exist at the time this script runs: if [ -f dredges/$H.D-$D.descript.pdf ]; then cat << EOF >> dredges/$H.D-$D.html Dredge $D description Dredge $D description EOF fi if [ -f dredges/$H.D-$D.photo.pdf ]; then cat << EOF >> dredges/$H.D-$D.html Dredge $D pictures D-$D pictures EOF fi if [ -f dredges/$H.D-$D.samples.pdf ]; then cat << EOF >> dredges/$H.D-$D.html Dredge $D samples D-$D samples EOF fi if [ -f dredges/$H.D-$D.unproc.ss.jpg ]; then cat << EOF >> dredges/$H.D-$D.html Dredge $D unprocessed sidescan D-$D unprocessed sidescan

EOF fi cat << EOF >> dredges/$H.D-$D.html

DRFT06RR home Return to Drift Expedition Leg 6 home page Goto seamount Seamount $smt Goto box Box $box


drft06rr_dredge $D: Page last updated $date by $USER. EOF