diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b05cad884..f89dacb30 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,6 @@ regenerate some of these there are helper scripts in tools directory: # Remove file you want to regenerate rm tests/data/parser/parse.out -# Run the generator in the tools directory -cd tools -./run_generators.sh +# Run the generator located in the tools directory +./tools/run_generators.sh ``` diff --git a/tools/run_generators.sh b/tools/run_generators.sh index e47deb833..6c13b712c 100755 --- a/tools/run_generators.sh +++ b/tools/run_generators.sh @@ -6,5 +6,12 @@ export LC_ALL=C # Runs the test and context generators. # +BASE="$(dirname $0)" + +echo "Using base dir: $BASE" +cd $BASE + php ContextGenerator.php contexts/ ../src/Contexts php TestGenerator.php ../tests/data ../tests/data + +echo "Done."