Skip to content

Commit

Permalink
run_generators.sh: use project root as base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tithugues committed Mar 24, 2023
1 parent dca8142 commit 433a687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/run_generators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export LC_ALL=C
# Runs the test and context generators.
#

BASE="$(dirname $0)"
PROJECT_ROOT=$(dirname $(dirname $(readlink -m $0)))

echo "Using base dir: $BASE"
cd $BASE
echo "Using base dir: ${PROJECT_ROOT}"
cd ${PROJECT_ROOT}

php ContextGenerator.php contexts/ ../src/Contexts
php TestGenerator.php ../tests/data ../tests/data
php tools/ContextGenerator.php tools/contexts/ src/Contexts
php tools/TestGenerator.php tests/data tests/data

echo "Done."

0 comments on commit 433a687

Please sign in to comment.