Skip to content
Snippets Groups Projects
Commit 59239559 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[Kernel] fix incompatibility with BSD sed

parent b05901ca
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,8 @@ tests/ptests_config: Makefile.generating share/Makefile.config ...@@ -41,8 +41,8 @@ tests/ptests_config: Makefile.generating share/Makefile.config
$(CHMOD_RO) $@ $(CHMOD_RO) $@
ALL_LIBRARY_NAMES=$(shell ocamlfind query -r -p-format $(LIBRARY_NAMES) $(LIBRARY_NAMES_GUI)) ALL_LIBRARY_NAMES=$(shell ocamlfind query -r -p-format $(LIBRARY_NAMES) $(LIBRARY_NAMES_GUI))
MAJOR_VERSION=$(shell $(SED) 's/^\([0-9]\+\)\..*/\1/' VERSION) MAJOR_VERSION=$(shell $(SED) -E 's/^([0-9]+)\..*/\1/' VERSION)
MINOR_VERSION=$(shell $(SED) 's/^[0-9]\+\.\([0-9]\+\).*/\1/' VERSION) MINOR_VERSION=$(shell $(SED) -E 's/^[0-9]+\.([0-9]+).*/\1/' VERSION)
$(CONFIG_FILE): $(CONFIG_FILE).in VERSION VERSION_CODENAME share/Makefile.config Makefile.generating configure.in $(CONFIG_FILE): $(CONFIG_FILE).in VERSION VERSION_CODENAME share/Makefile.config Makefile.generating configure.in
$(SED) \ $(SED) \
...@@ -211,7 +211,7 @@ endif ...@@ -211,7 +211,7 @@ endif
lib/fc/META.frama-c: share/META.frama-c share/Makefile.config Makefile.generating lib/fc/META.frama-c: share/META.frama-c share/Makefile.config Makefile.generating
$(MKDIR) lib/fc/ $(MKDIR) lib/fc/
$(SED) $< -e "s/@REQUIRES/$(LIBRARY_NAMES)/" > $@ $(SED) "s/@REQUIRES/$(LIBRARY_NAMES)/" $< > $@
GENERATED += lib/fc/META.frama-c GENERATED += lib/fc/META.frama-c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment