File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ bash .. / ppx. sh -- output ml input. re
3+ $ .. / run- ppx. sh -- output ml input. re
44 module X_as_main_function =
55 struct
66 external xProps : ? key : string -> unit -> < > Js. t = " " [@@ mel . obj ]
Original file line number Diff line number Diff line change 77 %{bin:jq}
88 %{bin:ocamlmerlin}
99 %{bin:bash}
10- ppx.sh))
10+ ppx.sh
11+ run-ppx.sh))
Original file line number Diff line number Diff line change 1- #! /bin/sh
2-
3- set -e
1+ set -eo pipefail
42
53function usage() {
64 echo " Usage: $( basename " $0 " ) --output re [file.re]"
Original file line number Diff line number Diff line change 1+
2+ root_path=$PWD
3+
4+ bash " $( dirname " $0 " ) /ppx.sh" " $@ "
5+
6+ cd " $root_path "
You can’t perform that action at this time.
0 commit comments