Skip to content

Commit

Permalink
Improve run generators script
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 10, 2020
1 parent 2883365 commit 068fa3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Expand Up @@ -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
```
7 changes: 7 additions & 0 deletions tools/run_generators.sh
Expand Up @@ -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."

0 comments on commit 068fa3b

Please sign in to comment.