Skip to content

Commit

Permalink
Various patches
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@6347 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
afedor committed Mar 20, 2000
1 parent 9131e42 commit dddb07f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 18 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
2000-03-20 Adam Fedor <fedor@gnu.org>

* gswapp.make: include common.make for TAR
* gswbundle.make: Likewise.

* GNUstep.sh.in: Replace pushd/popd with cd equivalent since not
all OS's have it.

* bundle.make: Include localization support (from gswbundle.make)
(Patch from Jonathan Gapen <jagapen@whitewater.chem.wisc.edu>)

* documentation.make: Take out sed of @email and @url since
texinfo has them now.

* configure.in (GRAPHIC_LIBS): Check for libXmu if libwraster
not found. Add X libs if libwraster not found.

Expand Down
5 changes: 3 additions & 2 deletions GNUstep.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ export GNUSTEP_MAKEFILES
# Determine the host information
#
if [ -z "$GNUSTEP_HOST" ]; then
pushd /tmp >> /dev/null
# Not all OSs (e.g. FreeBSD < 4.0) have pushd/popd
tmpdir=`pwd`; cd /tmp
GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.guess`
GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.sub $GNUSTEP_HOST`
popd >> /dev/null
cd $tmpdir
fi
GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_HOST`
GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_HOST`
Expand Down
25 changes: 24 additions & 1 deletion bundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ include $(GNUSTEP_MAKEFILES)/rules.make

# The name of the bundle is in the BUNDLE_NAME variable.
# The list of bundle resource file are in xxx_RESOURCE_FILES
# The list of localized bundle resource files is in xxx_LOCALIZED_RESOURCE_FILES
# The list of languages the bundle supports is in xxx_LANGUAGES
# The list of bundle resource directories are in xxx_RESOURCE_DIRS
# The name of the principal class is xxx_PRINCIPAL_CLASS
# where xxx is the bundle name
Expand Down Expand Up @@ -85,6 +87,12 @@ BUNDLE_RESOURCE_DIRS = $(foreach d, $(RESOURCE_DIRS), $(BUNDLE_DIR_NAME)/Resourc
ifeq ($(strip $(RESOURCE_FILES)),)
override RESOURCE_FILES=""
endif
ifeq ($(strip $(LOCALIZED_RESOURCE_FILES)),)
override LOCALIZED_RESOURCE_FILES=""
endif
ifeq ($(strip $(LANGUAGES)),)
override LANGUAGES="English"
endif
ifeq ($(BUNDLE_INSTALL_DIR),)
BUNDLE_INSTALL_DIR := $(GNUSTEP_BUNDLES)
endif
Expand All @@ -95,7 +103,7 @@ build-bundle-dir::
$(BUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO) \
$(BUNDLE_RESOURCE_DIRS)

build-bundle:: $(BUNDLE_FILE) bundle-resource-files
build-bundle:: $(BUNDLE_FILE) bundle-resource-files localized-bundle-resource-files

$(BUNDLE_FILE) : $(C_OBJ_FILES) $(OBJC_OBJ_FILES) $(SUBPROJECT_OBJ_FILES)
$(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
Expand All @@ -111,6 +119,21 @@ bundle-resource-files:: $(BUNDLE_DIR_NAME)/Resources/Info-gnustep.plist
done \
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; \
fi)

ifeq ($(PRINCIPAL_CLASS),)
override PRINCIPAL_CLASS = $(INTERNAL_bundle_NAME)
endif
Expand Down
12 changes: 3 additions & 9 deletions documentation.make
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,14 @@ internal-textdoc-all:: before-all before-$(TARGET)-all \

$(INTERNAL_doc_NAME).info: $(TEXI_FILES)
for i in $(TEXI_FILES); do \
sed -e 's,@email{\([^}]*\)},<\1>,g' \
$$i \
| sed -e 's,@url{\([^}]*\)},@samp{\1},g' \
> `basename $$i .tmpl.texi`.texi ; \
cp $$i `basename $$i .tmpl.texi`.texi ; \
done
$(GNUSTEP_MAKEINFO) $(GNUSTEP_MAKEINFO_FLAGS) \
-o $@ $(INTERNAL_doc_NAME).texi

$(INTERNAL_doc_NAME).dvi: $(TEXI_FILES)
for i in $(TEXI_FILES); do \
cp $$i `basename $$i .tmpl.texi`.texi ; \
-cp $$i `basename $$i .tmpl.texi`.texi ; \
done
$(GNUSTEP_TEXI2DVI) $(GNUSTEP_TEXI2DVI_FLAGS) $(INTERNAL_doc_NAME).texi

Expand All @@ -121,10 +118,7 @@ $(INTERNAL_doc_NAME)_toc.html: $(TEXI_FILES)

$(INTERNAL_textdoc_NAME): $(TEXI_FILES) $(TEXT_MAIN)
for i in $(TEXI_FILES) $(TEXT_MAIN); do \
sed -e 's,@email{\([^}]*\)},<\1>,g' \
$$i \
| sed -e 's,@url{\([^}]*\)},@samp{\1},g' \
> `basename $$i .tmpl.texi`.texi ; \
-cp $$i `basename $$i .tmpl.texi`.texi ; \
done
$(GNUSTEP_MAKETEXT) $(GNUSTEP_MAKETEXT_FLAGS) \
-o $@ `basename $(TEXT_MAIN) .tmpl.texi`.texi
Expand Down
4 changes: 1 addition & 3 deletions gswapp.make
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ GSWAPP_MAKE_LOADED=yes
# Include in the common makefile rules
#
include $(GNUSTEP_MAKEFILES)/rules.make
include $(GNUSTEP_MAKEFILES)/common.make

#TODO: move this
TAR=tar
LN_S=ln -s
GNUSTEP_GSWAPPS=$(GNUSTEP_INSTALLATION_DIR)/GSWApps

#
Expand Down
4 changes: 1 addition & 3 deletions gswbundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ GSWBUNDLE_MAKE_LOADED=yes
# Include in the common makefile rules
#
include $(GNUSTEP_MAKEFILES)/rules.make
include $(GNUSTEP_MAKEFILES)/common.make

#TODO: move this
TAR=tar
LN_S=ln -s
GSWBUNDLE_LD= $(BUNDLE_LD)
GSWBUNDLE_LDFLAGS = $(BUNDLE_LDFLAGS)

Expand Down

0 comments on commit dddb07f

Please sign in to comment.