| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | echoscip-shell system . . echo. " " |
| 3 | if testscip-shell system . . test. -f $1.f -o ! -f $1.c; then |
| 4 | echoscip-shell system . . echo. "(Required files : $1.f, c.$1, $1.dat)" |
| 5 | else |
| 6 | echoscip-shell system . . echo. "(Required files : $1.c, c.$1, $1.dat)" |
| 7 | fi |
| 8 | echoscip-shell system . . echo. " " |
| 9 | if ( testscip-shell system . . test. "$OS" = "Windows_NT" && echoscip-shell system . . echo. "$AUTO_DIR" | grepscip-shell system . . grep. " " ) then |
| 10 | if command -v cygpath > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 11 | # use short file name for AUTO_DIR with spaces |
| 12 | AUTO_DIR=$(cygpath -u $(cygpath -s -m "$AUTO_DIR")) |
| 13 | fi |
| 14 | fi |
| 15 | makescip-shell system . . make. -f "$AUTO_DIR"/cmds/cmds.make fcon EQUATION_NAME=$1 |
| 16 | cpscip-shell system . . cp. c.$1 fort.2 |
| 17 | cpscip-shell system . . cp. $1.dat fort.3 |
| 18 | ./fcon |
| 19 | mvscip-shell system . . mv. fort.8 s.dat |
| 20 | rmscip-shell system . . rm. fcon* fort.2 fort.3 |
| 21 | echoscip-shell system . . echo. " " |
| 22 | echoscip-shell system . . echo. "Conversion done : converted file saved as s.dat" |