1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Fix sed scripts to allow slashes in build flags.
Author: Nicolas Boulenguez <nicolas@debian.org>
--- a/Makefile
+++ b/Makefile
@@ -105,7 +105,7 @@
install --directory $(DESTDIR)/$(GPR_DIR)
sed template_for_installed_project \
$(foreach var,LIB_NAME SRC_DIR ALI_DIR LDLIBS LIB_DIR, \
- -e 's/$$($(var))/$(subst $(space),"$(comma) ",$($(var)))/g') \
+ -e 's%$$($(var))%$(subst $(space),"$(comma) ",$($(var)))%g') \
> $(DESTDIR)/$(GPR_DIR)/$(LIB_NAME).gpr
chmod 644 $(DESTDIR)/$(GPR_DIR)/$(LIB_NAME).gpr
install --directory $(DESTDIR)/$(ALI_DIR)/$(LIB_NAME)
@@ -131,7 +131,7 @@
texttools.gpr examples/examples.gpr: %.gpr: %.gpr.sed
sed $< \
$(foreach var,ADAFLAGS CFLAGS LDFLAGS LDLIBS SOVERSION, \
- -e 's/$(var)/$(subst $(space),"$(comma) ",$($(var)))/') \
+ -e 's%$(var)%$(subst $(space),"$(comma) ",$($(var)))%') \
> $@
.PHONY: build build-dynamic build-static clean install test uninstall
|