I downloaded GSTimeDate tonight to test, and found that its makefile
uses the GSWeb makefiles for the localization support.  It's easy to add
the same support to bundle.make, so I did.  Here's the patch.  (I've
tested it only with GSTimeDate so far, but it's not so complicated that
I think anything major can go wrong.)
Index: bundle.make
===================================================================
RCS file: /gnustep/gnustep/core/make/bundle.make,v
retrieving revision 1.32
diff -r1.32 bundle.make
33a34,35
> # The list of localized bundle resource files is in xxx_LOCALIZED_RESOURCE_FILES
> # The list of languages the bundle supports is in xxx_LANGUAGES
87a90,95
> ifeq ($(strip $(LOCALIZED_RESOURCE_FILES)),)
>   override LOCALIZED_RESOURCE_FILES=""
> endif
> ifeq ($(strip $(LANGUAGES)),)
>   override LANGUAGES="English"
> endif
98c106
< build-bundle:: $(BUNDLE_FILE) bundle-resource-files
---
> build-bundle:: $(BUNDLE_FILE) bundle-resource-files localized-bundle-resource-files
111a120,134
>       fi)
> 
> localized-bundle-resource-files:: $(BUNDLE_DIR_NAME)/Resources/Info-gnustep.plist
>       @(if [ "$(LOCALIZED_RESOURCE_FILES)" != "" ]; then \
>         echo "Copying localized resources into the bundle wrapper..."; \
>         for l in $(LANGUAGES); do \
>           if [ ! -f $$l.lproj ]; then \
>             $(MKDIRS) $(BUNDLE_DIR_NAME)/Resources/$$l.lproj; \
>           fi; \
>           for f in $(LOCALIZED_RESOURCE_FILES); do \
>             if [ -f $$l.lproj/$$f ]; then \
>               cp -r $$l.lproj/$$f $(BUNDLE_DIR_NAME)/Resources/$$l.lproj; \
>             fi; \
>           done; \
>         done; \

Reply via email to