mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
0ab7a0f9ce
Done using ```bash process() { FILE=$1; awk 'match($0, /^```catala-test *{ *id *= *"(.*)" *}/, a) {print "```catala-test-inline"; f="'"$(dirname $FILE)/output/$(basename $FILE)"'." a[1]; getline; print "$ " $0; while ((getline<f) > 0) print; next} {print}' $FILE >$FILE.new; mv $FILE.new $FILE; } for f in tests/test_*/*/*.catala_* examples/**/*.catala_*; do process $f; git add $f; done for d in $(find -name output -type d); do git rm -r $d; done ``` |
||
---|---|---|
.. | ||
tests | ||
.gitignore | ||
Makefile | ||
nsw_art_union.catala_en | ||
nsw_charity_housie.catala_en | ||
nsw_club_bingo.catala_en | ||
nsw_draw_lottery.catala_en | ||
nsw_no_draw_lottery.catala_en | ||
nsw_progressive_lottery.catala_en | ||
nsw_social_housie.catala_en |