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