| 1 | #!/bin/sh |
| 2 | rm -f fort.2 |
| 3 | CFILE= |
| 4 | SFILE= |
| 5 | if ( test $# -eq 1 ) then |
| 6 | CFILE="$1" |
| 7 | if (test -r s.$1) then |
| 8 | SFILE="$1" |
| 9 | fi |
| 10 | elif ( test $# -eq 2 ) then |
| 11 | CFILE="$1.$2" |
| 12 | if (test -r s.$1) then |
| 13 | SFILE="$1" |
| 14 | fi |
| 15 | else |
| 16 | CFILE="$1.$2" |
| 17 | SFILE="$3" |
| 18 | fi |
| 19 | cat h.$CFILE > fort.12 |
| 20 | if ( test "$OS" = "Windows_NT" && echo "$AUTO_DIR" | grep " " ) then |
| 21 | if command -v cygpath > /dev/null; then |
| 22 | # use short file name for AUTO_DIR with spaces |
| 23 | AUTO_DIR=$(cygpath -u $(cygpath -s -m "$AUTO_DIR")) |
| 24 | fi |
| 25 | fi |
| 26 | if ( test -n "$SFILE" -a -r c.$CFILE ) then |
| 27 | echo s=\'$SFILE\' | cat - c.$CFILE | make -f "$AUTO_DIR"/cmds/cmds.make EQUATION_NAME=$1 |
| 28 | else |
| 29 | make -f "$AUTO_DIR"/cmds/cmds.make EQUATION_NAME=$1 < c.$CFILE |
| 30 | fi |