11#! /bin/zsh
22
3- # PREREQUISITES :
4- # - generated target files are placed under dist/
3+ # PRE :
4+ # - path to generated λ-box files
55BUILD_DIR=dist
6- # - Peregrine compilation output is placed under gen/
6+ # - path to Peregrine compilation output
77GEN_DIR=gen
8- # - Agda generated HTML is placed under html/
8+ # POST:
9+ # - path to Agda generated HTML
910AGDA_HTML_DIR=html
1011
1112echo " Rendering translations..."
1213
13- for f in $BUILD_DIR /** / * $GEN_DIR /** / * * /* ; do
14+ for f in $BUILD_DIR /* $GEN_DIR /* /* ; do
1415
1516 echo " * $f "
1617 ext=${f##* .}
@@ -23,6 +24,7 @@ for f in $BUILD_DIR/**/* $GEN_DIR/**/**/*; do
2324 " v" ) echo " coq" ;; # alas, pandoc has no coq/rocq syntax-highlighting support
2425 " rs" ) echo " rust" ;;
2526 " ml" | " sml" ) echo " ocaml" ;;
27+ " result" ) echo " " ;;
2628 * ) echo " $ext " ;;
2729 esac)
2830 echo " \`\`\` $lang " > $mdFn
@@ -82,6 +84,8 @@ for f in $BUILD_DIR/**/**.txt; do
8284 </div>\
8385 <div class=\" tabs__tab\" id=\" in_3\" data-tab-info>\
8486 <embed src=\" $fCoq .html\" />\
87+ <div style=\" font-size:50px;\" >\ ↪ \ </div>\
88+ <embed src=\" $fCoq .result.html\" />\
8589 </div>\
8690 <div class=\" tabs__tab\" id=\" out_1\" data-tab-info>\
8791 <embed src=\" $fWasm .html\" />\
@@ -97,6 +101,8 @@ for f in $BUILD_DIR/**/**.txt; do
97101 </div>\
98102 <div class=\" tabs__tab\" id=\" out_5\" data-tab-info>\
99103 <embed src=\" $fRust .html\" />\
104+ <div style=\" font-size:50px;\" >\ ↪ \ </div>\
105+ <embed src=\" $fRust .result.html\" />\
100106 </div>\
101107 <div class=\" tabs__tab\" id=\" out_6\" data-tab-info>\
102108 <embed src=\" $fElm .html\" />\
0 commit comments