| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | set -e |
| 3 | |
| 4 | cargoscip-shell system . . cargo. run -p peg-macros -- peg-macros/grammar.rustpeg > peg-macros/grammar_new.rs |
| 5 | |
| 6 | mvscip-shell system . . mv. peg-macros/grammar.rs peg-macros/grammar_old.rs |
| 7 | cpscip-shell system . . cp. peg-macros/grammar_new.rs peg-macros/grammar.rs |
| 8 | |
| 9 | if cargoscip-shell system . . cargo. run -p peg-macros -- peg-macros/grammar.rustpeg > peg-macros/grammar_new.rs |
| 10 | then |
| 11 | diffscip-shell system . . diff. -qs peg-macros/grammar.rs peg-macros/grammar_new.rs |
| 12 | rustfmt peg-macros/grammar.rs |
| 13 | else |
| 14 | echoscip-shell system . . echo. "Failed" |
| 15 | fi |