| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | if ( testscip-shell system . . test. $# -eq 1 ) then |
| 3 | cpscip-shell system . . cp. b.$1 fort.27 |
| 4 | cpscip-shell system . . cp. s.$1 fort.28 |
| 5 | "$AUTO_DIR"/bin/autlab |
| 6 | rmscip-shell system . . rm. fort.27 |
| 7 | rmscip-shell system . . rm. fort.28 |
| 8 | if (testscip-shell system . . test. -r fort.37) then |
| 9 | cpscip-shell system . . cp. b.$1 b.$1~ |
| 10 | mvscip-shell system . . mv. fort.37 b.$1 |
| 11 | fi |
| 12 | if (testscip-shell system . . test. -r fort.38) then |
| 13 | cpscip-shell system . . cp. s.$1 s.$1~ |
| 14 | mvscip-shell system . . mv. fort.38 s.$1 |
| 15 | echoscip-shell system . . echo. " Rewriting finished." |
| 16 | fi |
| 17 | elif( testscip-shell system . . test. $# -eq 2 ) then |
| 18 | cpscip-shell system . . cp. b.$1 fort.27 |
| 19 | cpscip-shell system . . cp. s.$1 fort.28 |
| 20 | "$AUTO_DIR"/bin/autlab |
| 21 | rmscip-shell system . . rm. fort.27 |
| 22 | rmscip-shell system . . rm. fort.28 |
| 23 | if (testscip-shell system . . test. -r fort.37) then |
| 24 | mvscip-shell system . . mv. fort.37 b.$2 |
| 25 | fi |
| 26 | if (testscip-shell system . . test. -r fort.38) then |
| 27 | mvscip-shell system . . mv. fort.38 s.$2 |
| 28 | echoscip-shell system . . echo. " Rewriting finished." |
| 29 | fi |
| 30 | else |
| 31 | cpscip-shell system . . cp. fort.7 fort.27 |
| 32 | cpscip-shell system . . cp. fort.8 fort.28 |
| 33 | "$AUTO_DIR"/bin/autlab |
| 34 | rmscip-shell system . . rm. fort.27 |
| 35 | rmscip-shell system . . rm. fort.28 |
| 36 | if (testscip-shell system . . test. -r fort.37) then |
| 37 | cpscip-shell system . . cp. fort.7 fort.7~ |
| 38 | mvscip-shell system . . mv. fort.37 fort.7 |
| 39 | fi |
| 40 | if (testscip-shell system . . test. -r fort.38) then |
| 41 | cpscip-shell system . . cp. fort.8 fort.8~ |
| 42 | mvscip-shell system . . mv. fort.38 fort.8 |
| 43 | echoscip-shell system . . echo. " Rewriting finished." |
| 44 | fi |
| 45 | fi |