10 lines
231 B
Bash
10 lines
231 B
Bash
#!/bin/sh
|
|
|
|
# Get relative path of the root directory of the project
|
|
rdir=`git rev-parse --git-dir`
|
|
rel_path="$(dirname "$rdir")"
|
|
# Change to that path and run the file
|
|
cd $rel_path
|
|
|
|
java -jar antlr-4.11.1-complete.jar PS.g4 -o gen
|