| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | if ( testscip-shell system . . test. $# -eq 1 ) then |
| 3 | inb=b.$1 |
| 4 | ins=s.$1 |
| 5 | outb=b.$1~~ |
| 6 | outs=s.$1~~ |
| 7 | elif( testscip-shell system . . test. $# -eq 2 ) then |
| 8 | inb=b.$1 |
| 9 | ins=s.$1 |
| 10 | outb=b.$2 |
| 11 | outs=s.$2 |
| 12 | else |
| 13 | inb=fort.7 |
| 14 | ins=fort.8 |
| 15 | outb=fort.37 |
| 16 | outs=fort.38 |
| 17 | fi |
| 18 | if "$AUTO_DIR"/python/auto/relabel.py $inb $ins $outb $outs 2> /dev/nullscip-shell filesystem . . `/dev/null`.; then :; else |
| 19 | #Fortran relabelling |
| 20 | . compat.shscip-shell source . . `compat.sh`. |
| 21 | if testscip-shell system . . test. $COMPAT = compat; then |
| 22 | cpscip-shell system . . cp. $inb fort.27 |
| 23 | cpscip-shell system . . cp. $ins fort.28 |
| 24 | outb=fort.37 |
| 25 | outs=fort.38 |
| 26 | "$AUTO_DIR"/bin/relabel |
| 27 | rmscip-shell system . . rm. fort.27 fort.28 |
| 28 | if testscip-shell system . . test. $# -eq 2; then |
| 29 | if (testscip-shell system . . test. -r fort.37) then |
| 30 | mvscip-shell system . . mv. fort.37 b.$2 |
| 31 | fi |
| 32 | if (testscip-shell system . . test. -r fort.38) then |
| 33 | mvscip-shell system . . mv. fort.38 s.$2 |
| 34 | outs=s.$2 |
| 35 | fi |
| 36 | fi |
| 37 | else |
| 38 | "$AUTO_DIR"/bin/relabel $inb $ins $outb $outs |
| 39 | fi |
| 40 | fi |
| 41 | if( testscip-shell system . . test. $# -eq 2 ) then |
| 42 | if (testscip-shell system . . test. -r $outs) then |
| 43 | echoscip-shell system . . echo. " rl: Relabeling finished." |
| 44 | fi |
| 45 | else |
| 46 | if (testscip-shell system . . test. -r $outb) then |
| 47 | mvscip-shell system . . mv. $inb $inb~ |
| 48 | mvscip-shell system . . mv. $outb $inb |
| 49 | fi |
| 50 | if (testscip-shell system . . test. -r $outs) then |
| 51 | mvscip-shell system . . mv. $ins $ins~ |
| 52 | mvscip-shell system . . mv. $outs $ins |
| 53 | echoscip-shell system . . echo. " rl: Relabeling finished." |
| 54 | fi |
| 55 | fi |