Deal with spaces in bundle resources file names
authorMathieu Baudier <mbaudier@argeo.org>
Tue, 18 Oct 2022 09:19:17 +0000 (11:19 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Tue, 18 Oct 2022 09:19:17 +0000 (11:19 +0200)
osgi.mk

diff --git a/osgi.mk b/osgi.mk
index bbd54693c2c7fa9b9797b8200151eaa4ae01f0d9..14374ecbb9d27fe11aad774e5a2016a0a4f5d651 100644 (file)
--- a/osgi.mk
+++ b/osgi.mk
@@ -52,7 +52,7 @@ $(BUILD_BASE)/built : $(TODOS)
 $(A2_OUTPUT)/%.$(major).$(minor).jar : $(BUILD_BASE)/$$(subst $(A2_CATEGORY)/,,$$*)/to-build
        $(ARGEO_MAKE) all --branch $(BRANCH) --a2-bases $(A2_BASE) --dep-categories $(DEP_CATEGORIES) --category $(A2_CATEGORY) --bundles $(subst $(A2_CATEGORY)/,,$*)
 
-$(BUILD_BASE)/%/to-build : $$(shell find $(SDK_SRC_BASE)/% -type f -not -path 'bin/*' -not -path '*/MANIFEST.MF')
+$(BUILD_BASE)/%/to-build : $$(shell find $(SDK_SRC_BASE)/% -type f -not -path 'bin/*' -not -path '*/MANIFEST.MF' | sed 's/ /\\ /g')
        @rm -rf $(dir $@)
        @mkdir -p $(dir $@) 
        @touch $@