mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 00:41:14 +00:00
Better checking of .lproj dirs, warn about missing .lproj dirs, do not try
installing resources from missing .lproj dirs git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10841 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
94518542bc
commit
a3be2c1240
1 changed files with 8 additions and 6 deletions
|
@ -212,14 +212,16 @@ app-localized-resource-files:: $(APP_DIR_NAME)/Resources/Info-gnustep.plist \
|
|||
ifneq ($(strip $(LOCALIZED_RESOURCE_FILES)),)
|
||||
@(echo "Copying localized resources into the application wrapper..."; \
|
||||
for l in $(LANGUAGES); do \
|
||||
if [ ! -f $$l.lproj ]; then \
|
||||
if [ -d $$l.lproj ]; then \
|
||||
$(MKDIRS) $(APP_DIR_NAME)/Resources/$$l.lproj; \
|
||||
for f in $(LOCALIZED_RESOURCE_FILES); do \
|
||||
if [ -f $$l.lproj/$$f ]; then \
|
||||
cp -r $$l.lproj/$$f $(APP_DIR_NAME)/Resources/$$l.lproj; \
|
||||
fi; \
|
||||
done; \
|
||||
else \
|
||||
echo "Warning: $$l.lproj not found - ignoring"; \
|
||||
fi; \
|
||||
for f in $(LOCALIZED_RESOURCE_FILES); do \
|
||||
if [ -f $$l.lproj/$$f ]; then \
|
||||
cp -r $$l.lproj/$$f $(APP_DIR_NAME)/Resources/$$l.lproj; \
|
||||
fi; \
|
||||
done; \
|
||||
done;)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue