File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ rm -rf out/* build/*
66
77prelude=$( effekt --show-prelude)
88
9+ # this complex json maneuver is required because .json files of same basename get overwritten by effekt!
910for file in $( find effekt/libraries/ -type f -name " *.effekt" ) ; do
11+ json=out/" $( basename " $file " ) " .json
12+ if [ -f " $json " ]; then mv " $json " out/" $( basename " $file " ) " _.json; fi
1013 effekt -o out/ --write-documentation " $file "
11- cat out/" $( basename $file ) " .json >> build/raw.json
1214done
1315
14- cat out/raw .json | jq -c -s . > build/full.json
16+ cat out/* .json | jq -c -s . > build/full.json
1517gzip build/full.json
1618
1719node convert.js " $1 " " $prelude "
1820node index.js " $1 " " $prelude " > build/index." $1 "
1921
20- cp common.js static/* " $dir "
21-
2222# we copy the static files into *every* subdirectory
2323# this is a hack, but makes importing files a lot simpler!
2424for dir in $( find build -type d) ; do
You can’t perform that action at this time.
0 commit comments