Commit f2dd6dad authored by Andrei Paskevich's avatar Andrei Paskevich

trying to use sed in a portable fashion (Apple = fashion, right?)

parent 5cb917b9
......@@ -163,19 +163,17 @@ LIB_PARSER_POSTLUDE = \
"let logic_file_eof env = inside_env env logic_file_eof\nlet list0_decl_eof env lenv uc = inside_uc env lenv uc list0_decl_eof\n"
LIB_PARSER_INTERFACE = \
-e "s/^val \+logic_file_eof *:/\0 Env.env ->/" \
-e "s/^val \+list0_decl_eof *:/\0 Env.env -> \
-e "s/^val *logic_file_eof *:/val logic_file_eof : Env.env ->/" \
-e "s/^val *list0_decl_eof *:/val list0_decl_eof : Env.env -> \
Theory.theory Theory.Mnm.t -> Theory.theory_uc ->/"
src/parser/parser.ml src/parser/parser.mli: src/parser/parser.mly
$(OCAMLYACC) $<
printf $(LIB_PARSER_POSTLUDE) >> src/parser/parser.ml
# not portable: sed -i $(LIB_PARSER_INTERFACE) src/parser/parser.mli
perl -pi -e "s/val logic_file_eof :/val logic_file_eof : Env.env ->/" src/parser/parser.mli
perl -pi -e "s/val list0_decl_eof :/val list0_decl_eof : Env.env -> \
Theory.theory Theory.Mnm.t -> Theory.theory_uc ->/" src/parser/parser.mli
mv src/parser/parser.mli src/parser/parser.mli.orig
sed $(LIB_PARSER_INTERFACE) src/parser/parser.mli.orig > \
src/parser/parser.mli
rm src/parser/parser.mli.orig
# build targets
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment