#!/bin/sh # complain if no program name was given if test $# = 0; then echo 'usage: ctsetup ' exit 0 fi # # make the Makefile # for t in "$@"; do if test $t = -fort; then status=fort; elif test $t = -f90; then status=f90; elif test $t = -cxx; then status=cxx else objs=$objs' '$t'.o'; fi done TOOLS_DIR=@CANTERA_ROOT@/tools echo 'creating '$1'.mak...' cat > .sedscript < ./$1.mak rm -f .sedscript