Skip to content

Commit 01abf87

Browse files
authored
Simplify script to recreate grammars (#624)
1 parent 0e4408d commit 01abf87

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

recreate-grammars.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/bin/bash
22

3-
# Enter enums directory
4-
pushd enums
3+
# Clean old grammars builds
4+
cargo clean --manifest-path ./enums/Cargo.toml
55

66
# Recreate all grammars
7-
cargo clean && cargo run -- -lrust -o ../src/languages
8-
9-
# Exit enums directory
10-
popd
7+
cargo run --manifest-path ./enums/Cargo.toml -- -lrust -o ./src/languages
118

129
# Format the code of the recreated grammars
1310
cargo fmt

0 commit comments

Comments
 (0)