mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-31 01:10:56 +00:00
Fixed tricky problem when copying resources from a subproject ... * being
expanded to itself in the shell if no matching file exists! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13015 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ce085f7c20
commit
238d7665ad
1 changed files with 9 additions and 1 deletions
|
@ -144,6 +144,11 @@ $(FULL_RESOURCE_DIRS):
|
|||
# TODO - implement the `Developer` mode :-)
|
||||
#
|
||||
|
||||
# Please note the trick when copying subproject resources - if there
|
||||
# is nothing inside $$subproject/Resources/Subproject/, in
|
||||
# $$subproject/Resources/Subproject/* the * expands to itself. So we
|
||||
# check if that is true before trying to copy.
|
||||
|
||||
shared-instance-bundle-all: $(GNUSTEP_SHARED_INSTANCE_BUNDLE_RESOURCE_PATH) \
|
||||
$(FULL_RESOURCE_DIRS) \
|
||||
shared-instance-bundle-all-gsweb
|
||||
|
@ -183,7 +188,10 @@ ifneq ($(_SUBPROJECTS),)
|
|||
@(echo "Copying resources from subprojects into the $(GNUSTEP_TYPE) wrapper..."; \
|
||||
for subproject in $(_SUBPROJECTS); do \
|
||||
if [ -d $$subproject/Resources/Subproject ]; then \
|
||||
cp -r $$subproject/Resources/Subproject/* $(GNUSTEP_SHARED_INSTANCE_BUNDLE_RESOURCE_PATH)/; \
|
||||
if [ "$$subproject/Resources/Subproject/*" != $$subproject'/Resources/Subproject/*' ]; then \
|
||||
cp -r $$subproject/Resources/Subproject/* \
|
||||
$(GNUSTEP_SHARED_INSTANCE_BUNDLE_RESOURCE_PATH)/; \
|
||||
fi; \
|
||||
fi; \
|
||||
done)
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue