@@ -7,8 +7,8 @@ spago build
77case $1 in
88 ccap)
99 DB=dev15-db.wicourts.gov:5612:cc:viewer
10- ./get-schema --config $DB -d > samples/Domains.tmpl
11- ./get-schema --config $DB -t Case > samples/Case.tmpl
10+ ./get-schema.js --config $DB -d > samples/Domains.tmpl
11+ ./get-schema.js --config $DB -t Case > samples/Case.tmpl
1212 ;;
1313esac
1414
@@ -17,23 +17,23 @@ for i in samples/*.tmpl; do
1717 # not parsed correctly. NOTE: this passing does NOT guarantee a
1818 # working purescript or scala file on generation; for example, if
1919 # a type is undefined, no error checking catches this.
20- ./compile .js -m test -p unused $i
20+ ./codegen .js -m test -p unused $i
2121
2222 # Pretty-print county.tmpl to the console. Removes comments and
2323 # puts the template in a readable format.
24- ./compile .js -m pretty -p unused $i
24+ ./codegen .js -m pretty -p unused $i
2525
2626 # Generate the purescript file from the given template
27- ./compile .js -p Ccap.Cc.Test -m purs $i
27+ ./codegen .js -p Ccap.Cc.Test -m purs $i
2828
2929 # Generate the scala file from the given template
30- ./compile .js -p gov.wicourts.cc -m scala $i
30+ ./codegen .js -p gov.wicourts.cc -m scala $i
3131
3232 # TODO: Test compilation of generated output.
3333done
3434
3535# We can at least test compile this one for now
3636
37- ./compile .js -p Test.Generated -m purs -o test/generated samples/SelfContained.tmpl
37+ ./codegen .js -p Test.Generated -m purs -o test/generated samples/SelfContained.tmpl
3838
3939spago test
0 commit comments