#!/bin/bash

function check_okay {
	if [ $? -ne 0 ]
	then
		exit 1
	fi
}

function do_onex {
	cd $1
	check_okay

  # change this to be whatever you want to do

  cd private
	pwd > check
  grep 'pow2' *.f >> check
  t check
	cd ../..
}

function do_one {
	cd $1/test
  cp ../../const/test/rn_phi .
  svn add rn_phi
	cd ../..
}


#do_one adipls
#do_one sample
do_one atm
do_one binary
do_one chem
do_one colors
do_one const
do_one crlibm
do_one eos
do_one gyre
do_one interp_1d
do_one interp_2d
do_one ionization
do_one kap
do_one mlt
do_one mtx
do_one net
do_one neu
do_one nse
do_one num
do_one rates
do_one star
do_one utils

echo
