#!/bin/bash
# catalog a list of run folders read from command line,
# and create softlinks to the catalog folder

until [ -z $1 ]; do
  echo catalouging $1...
  cd $1
  rm jetto.sout
  rm -f .msg
  if [ -f jetto.jsp ]; then
    completejsp
  fi 
  if [ -f jetto.jhp ]; then
    completejhp
  fi
  if [ -f jetto.jse ]; then
    completejse
  fi 
  catalog
  rtcd=$?
  cd ..
  ln_cat $1
  catid_oneline $1
  shift
  echo '==============================================' 
  echo
done



  

