Skip to content

Commit 068fa3b

Browse files
committed
Improve run generators script
Signed-off-by: William Desportes <[email protected]>
1 parent 2883365 commit 068fa3b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ regenerate some of these there are helper scripts in tools directory:
4848
# Remove file you want to regenerate
4949
rm tests/data/parser/parse.out
5050
51-
# Run the generator in the tools directory
52-
cd tools
53-
./run_generators.sh
51+
# Run the generator located in the tools directory
52+
./tools/run_generators.sh
5453
```

tools/run_generators.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ export LC_ALL=C
66
# Runs the test and context generators.
77
#
88

9+
BASE="$(dirname $0)"
10+
11+
echo "Using base dir: $BASE"
12+
cd $BASE
13+
914
php ContextGenerator.php contexts/ ../src/Contexts
1015
php TestGenerator.php ../tests/data ../tests/data
16+
17+
echo "Done."

0 commit comments

Comments
 (0)