| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # convert .asm (Microsoft [or whatever] assembler) to .lg |
| 3 | |
| 4 | if [scip-shell system . . `[`. -n "$1" ] && [scip-shell system . . `[`. -f $1 -o -f $1.asm ] |
| 5 | then |
| 6 | if [scip-shell system . . `[`. `basenamescip-shell system . . basename. $1` = `basenamescip-shell system . . basename. $1 .asm` ] |
| 7 | then |
| 8 | lgrind -i -lmasm $1.asm > $1.lg |
| 9 | echoscip-shell system . . echo. Created $1.lg |
| 10 | else |
| 11 | lgrind -i -lmasm $1 > `basenamescip-shell system . . basename. $1 .asm`.lg |
| 12 | echoscip-shell system . . echo. Created `basenamescip-shell system . . basename. $1 .asm`.lg |
| 13 | fi |
| 14 | else |
| 15 | echoscip-shell system . . echo. Usage: $0 "<file>[.asm]" |
| 16 | echoscip-shell system . . echo. $1.asm does not exist. |
| 17 | fi |