#!/bin/tcsh #this script cleans the repository for month 'YYYY-MM' if $1 == "-h" then echo "command line: photonight " goto exit endif set echo set month = $1 set maindir = /export/diskwa/webdocs/eso/gen-fac/pubs/astclim/forecast/meteo/CIRA/images/repository cd $maindir mkdir ./teta0/$month mv ./teta0/*-teta0.{$month}-*.gif ./teta0/$month webrm -n -r teta0 webcp teta0 mkdir ./tau0/$month mv ./tau0/*-tau0.{$month}-*.gif ./tau0/$month webrm -n -r tau0 webcp tau0 mkdir ./lossam/$month mv ./lossam/*-lossam.{$month}-*.gif ./lossam/$month webrm -n -r lossam webcp lossam exit: