From 4b27d7c6b40415df687854738e18275fd6cff96e Mon Sep 17 00:00:00 2001 From: Xavier Clerc Date: Wed, 14 Jan 2015 12:34:09 +0100 Subject: [PATCH] Change the regexp so that it is compatible with the sed shipped with OS X. --- ocaml/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/Makefile b/ocaml/Makefile index 22c6ea919..485333afb 100644 --- a/ocaml/Makefile +++ b/ocaml/Makefile @@ -47,7 +47,7 @@ all.opt: $(TARGET).cma: $(OBJS) $(OCAMLC_CMD) -a -o $(TARGET).cma $(OBJS) - for i in `grep " (\*" exposed_modules.ml | sed "s/^[^(]\+(\*[ ]\+\([^.]\+\)\..*$$/\1/g"`; do cp ../$$i.cmi .; done + for i in `grep " (\*" exposed_modules.ml | sed "s/^.*(\* //" | sed "s/ \*)$$//"`; do cp ../$$i.cmi .; done $(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa) $(OCAMLOPT_CMD) -a -o $(TARGET).cmxa $(OPTOBJS)