#!/bin/bash # # Makes a skeleton for a html file were result of run can be recorded. # README, start.in, and run.in are included in file. # File is put in the a public directory which is linked to the run directory. # Still messy! # # tarek Dec 2 2002 # hn=`hostname` pwd=`pwd` dir=${pwd##*/} if [ "$hn" = "gridur" ]; then str='s/f90/www/g'; fi www=`echo $pwd | sed -e $str` echo www directory set to $www mkdir -p $www ln -s $www www cd $www title='Pencil code run '$dir index='index.html' if [ -e $index ]; then echo $index exists. Delete it and try again; else #------------------------------------------------------- cat > $index< $title

$title

Aim

EOF
cat $pwd/README >>   $index
cat >> $index <

Start Parameters

EOF
cat $pwd/start.in >>   $index
cat >> $index <

Run Parameters

EOF
cat $pwd/start.in >>   $index
cat >> $index<

Results

Discusion

made on the `date` by `whoami`
CVS: \$Id$ EOF #----------------------------------------------- fi