2016-07-08 13:09:17 +00:00
|
|
|
|
2008-01-17 02:32:21 +00:00
|
|
|
# This file must be sourced inside (ba)sh using: .
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
2002-05-02 15:07:49 +00:00
|
|
|
# @configure_input@
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
# Shell initialization for the GNUstep environment.
|
|
|
|
#
|
2008-01-14 11:17:34 +00:00
|
|
|
# Copyright (C) 1997-2008 Free Software Foundation, Inc.
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
2002-02-24 15:45:14 +00:00
|
|
|
# Author: Adam Fedor <fedor@gnu.org>
|
|
|
|
# Author: Richard Frith-Macdonald <rfm@gnu.org>
|
2008-01-14 11:17:34 +00:00
|
|
|
# Author: Nicola Pero <nicola.pero@meta-innovation.com>
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
2007-10-30 14:18:41 +00:00
|
|
|
# as published by the Free Software Foundation; either version 3
|
1997-09-22 22:49:02 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2016-07-08 13:09:17 +00:00
|
|
|
#
|
1997-09-22 22:49:02 +00:00
|
|
|
# You should have received a copy of the GNU General Public
|
2007-07-13 10:11:48 +00:00
|
|
|
# License along with this library; see the file COPYING.
|
1997-09-22 22:49:02 +00:00
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
|
2002-04-04 14:27:57 +00:00
|
|
|
# Warning - this shell script is delicate, because it is sourced by
|
|
|
|
# using . rather than simply executed. It is sourced because that is
|
|
|
|
# the only way to change the shell variables in the calling
|
|
|
|
# environment.
|
|
|
|
#
|
|
|
|
# Sourcing makes the shell script more delicate for the following reasons:
|
|
|
|
#
|
|
|
|
# * temporary variables are automatically set in the calling
|
|
|
|
# environment! WORKAROUND: we need to unset all them after using
|
|
|
|
# them to avoid polluting the calling environment;
|
|
|
|
#
|
|
|
|
# * not only the exit value of the script, but the exit value of each
|
|
|
|
# command we execute, might be interpreted by the calling
|
|
|
|
# environment. Typically, the calling environment might be using the
|
|
|
|
# shell errexit option ('set -e') in bash parlance, which causes the
|
|
|
|
# shell to exit if any command returns an error value. If this were
|
|
|
|
# a normal script, this option would mean that the shell would exit
|
|
|
|
# if the return value of the whole script were an error value; but
|
|
|
|
# because we are sourced, it is as all the commands in this script
|
|
|
|
# were executed directly in the calling environment, so *all* values
|
|
|
|
# returned by *all* commands must be non-error. [this all typically
|
|
|
|
# happens in rpm builds, where scripts are run with the errexit
|
|
|
|
# option so that errors in scripts abort the build, and now if a
|
|
|
|
# script sources GNUstep.sh, then we are exactly in this situation -
|
|
|
|
# if any command inside GNUstep.sh returns an error value (even if
|
|
|
|
# GNUstep.sh as a whole would be happy and return succes), the whole
|
|
|
|
# rpm build process aborts!]. WORKAROUND: we must make sure all
|
|
|
|
# commands return success - last resorts hacks like 'command || :'
|
|
|
|
# which always returns success whatever command returns.
|
|
|
|
#
|
|
|
|
|
2004-06-15 10:39:10 +00:00
|
|
|
# If we're running in zsh (auch!) make sure we're using -y
|
|
|
|
# (SH_WORD_SPLIT) else our path manipulations won't work.
|
|
|
|
if [ -n "$ZSH_VERSION" ]; then
|
|
|
|
|
|
|
|
# If -y is not already set, set it and remember that we
|
|
|
|
# need to set it back to what it was at the end.
|
|
|
|
if ( setopt | grep shwordsplit > /dev/null ); then :; else
|
2012-02-21 14:21:38 +00:00
|
|
|
setopt shwordsplit
|
2004-06-15 10:39:10 +00:00
|
|
|
GS_ZSH_NEED_TO_RESTORE_SET=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# When this is set to 'yes', strict gnustep-make v2 compatibility mode
|
|
|
|
# is turned on.
|
|
|
|
GNUSTEP_MAKE_STRICT_V2_MODE=@GNUSTEP_MAKE_STRICT_V2_MODE@
|
|
|
|
|
2005-10-12 16:46:34 +00:00
|
|
|
#
|
2005-10-13 02:42:10 +00:00
|
|
|
# Read our configuration files
|
2005-10-12 16:46:34 +00:00
|
|
|
#
|
2005-10-13 02:42:10 +00:00
|
|
|
|
|
|
|
# Determine the location of the system configuration file
|
|
|
|
if [ -z "$GNUSTEP_CONFIG_FILE" ]; then
|
2006-07-06 12:19:32 +00:00
|
|
|
GNUSTEP_CONFIG_FILE=@GNUSTEP_CONFIG_FILE@
|
2008-01-14 11:17:34 +00:00
|
|
|
else
|
|
|
|
# Remember that the variable was already set in the environment, and
|
|
|
|
# preserve it at the end of the script. Otherwise we'll unset it to
|
|
|
|
# avoid polluting the environment with our own internal variables.
|
|
|
|
GNUSTEP_KEEP_CONFIG_FILE=yes
|
2005-10-13 02:42:10 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Determine the location of the user configuration file
|
|
|
|
if [ -z "$GNUSTEP_USER_CONFIG_FILE" ]; then
|
2006-07-06 12:19:32 +00:00
|
|
|
GNUSTEP_USER_CONFIG_FILE=@GNUSTEP_USER_CONFIG_FILE@
|
2008-01-14 11:17:34 +00:00
|
|
|
else
|
|
|
|
GNUSTEP_KEEP_USER_CONFIG_FILE=yes
|
2005-10-13 02:42:10 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Read the system configuration file
|
|
|
|
if [ -f "$GNUSTEP_CONFIG_FILE" ]; then
|
|
|
|
. "$GNUSTEP_CONFIG_FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# FIXME: determining GNUSTEP_HOME
|
|
|
|
GNUSTEP_HOME=~
|
|
|
|
|
|
|
|
# Read the user configuration file ... unless it is disabled (ie, set
|
|
|
|
# to an empty string)
|
|
|
|
if [ -n "$GNUSTEP_USER_CONFIG_FILE" ]; then
|
2016-07-08 13:09:17 +00:00
|
|
|
case "$GNUSTEP_USER_CONFIG_FILE" in
|
2005-10-13 02:42:10 +00:00
|
|
|
/*) # An absolute path
|
|
|
|
if [ -f "$GNUSTEP_USER_CONFIG_FILE" ]; then
|
|
|
|
. "$GNUSTEP_USER_CONFIG_FILE"
|
|
|
|
fi;;
|
|
|
|
*) # Something else
|
|
|
|
if [ -f "$GNUSTEP_HOME/$GNUSTEP_USER_CONFIG_FILE" ]; then
|
|
|
|
. "$GNUSTEP_HOME/$GNUSTEP_USER_CONFIG_FILE"
|
|
|
|
fi;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Now, set any essential variable (that is not already set) to the
|
|
|
|
# built-in values.
|
2007-02-14 03:40:30 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
# In strict v2 mode, clean these obsolete variables in case the
|
|
|
|
# config file contains them. They shouldn't exist so unsetting
|
|
|
|
# them can't harm.
|
|
|
|
unset GNUSTEP_SYSTEM_ROOT
|
|
|
|
unset GNUSTEP_LOCAL_ROOT
|
|
|
|
unset GNUSTEP_NETWORK_ROOT
|
|
|
|
else
|
|
|
|
# This is deprecated and will be removed
|
|
|
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
|
|
GNUSTEP_SYSTEM_ROOT=@GNUSTEP_SYSTEM_ROOT@
|
|
|
|
fi
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# This is deprecated and will be removed
|
|
|
|
if [ -z "$GNUSTEP_LOCAL_ROOT" ]; then
|
|
|
|
GNUSTEP_LOCAL_ROOT=@GNUSTEP_LOCAL_ROOT@
|
|
|
|
fi
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# This is deprecated and will be removed
|
|
|
|
if [ -z "$GNUSTEP_NETWORK_ROOT" ]; then
|
|
|
|
GNUSTEP_NETWORK_ROOT=@GNUSTEP_NETWORK_ROOT@
|
|
|
|
fi
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
export GNUSTEP_SYSTEM_ROOT GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT
|
|
|
|
fi
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2006-10-02 15:54:56 +00:00
|
|
|
# GNUSTEP_FLATTENED is obsolete, please use GNUSTEP_IS_FLATTENED
|
|
|
|
# instead
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
unset GNUSTEP_FLATTENED
|
|
|
|
else
|
|
|
|
GNUSTEP_FLATTENED=@GNUSTEP_FLATTENED@
|
|
|
|
export GNUSTEP_FLATTENED
|
|
|
|
fi
|
2006-10-02 15:54:56 +00:00
|
|
|
GNUSTEP_IS_FLATTENED=@GNUSTEP_IS_FLATTENED@
|
1999-04-23 02:54:45 +00:00
|
|
|
if [ -z "$LIBRARY_COMBO" ]; then
|
|
|
|
LIBRARY_COMBO=@ac_cv_library_combo@
|
|
|
|
fi
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ ! "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
# Having these variables in the environment is deprecated and will
|
|
|
|
# be removed. But for now, if we are not in strict gnustep-make v2
|
|
|
|
# mode, then we always export these variables for
|
|
|
|
# backwards-compatibility.
|
|
|
|
export GNUSTEP_IS_FLATTENED LIBRARY_COMBO
|
|
|
|
|
|
|
|
# Else they are only exported if GNUSTEP_SH_EXPORT_ALL_VARIABLES
|
|
|
|
# is defined - at the end of the script.
|
|
|
|
fi
|
1997-10-28 02:34:11 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
|
|
|
|
GNUSTEP_HAS_PKGCONFIG=@GNUSTEP_HAS_PKGCONFIG@
|
|
|
|
|
2005-10-13 02:42:10 +00:00
|
|
|
if [ -z "$GNUSTEP_MAKEFILES" ]; then
|
2007-02-14 03:40:30 +00:00
|
|
|
GNUSTEP_MAKEFILES=@GNUSTEP_MAKEFILES@
|
2005-10-13 02:42:10 +00:00
|
|
|
fi
|
2001-10-17 03:22:41 +00:00
|
|
|
export GNUSTEP_MAKEFILES
|
|
|
|
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
# Make sure this is never set in gnustep-make v2 strict mode; it
|
|
|
|
# might have been set in the config file.
|
|
|
|
unset GNUSTEP_USER_DIR
|
|
|
|
unset GNUSTEP_USER_ROOT
|
|
|
|
else
|
|
|
|
# GNUSTEP_USER_DIR is deprecated and will be removed
|
|
|
|
if [ -z "$GNUSTEP_USER_DIR" ]; then
|
|
|
|
GNUSTEP_USER_DIR=@GNUSTEP_USER_DIR@
|
|
|
|
fi
|
2005-10-13 02:42:10 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
#
|
|
|
|
# Set GNUSTEP_USER_ROOT which is the variable used in practice.
|
|
|
|
# GNUSTEP_USER_ROOT is deprecated and will be removed
|
|
|
|
#
|
2016-07-08 13:09:17 +00:00
|
|
|
case "$GNUSTEP_USER_DIR" in
|
2008-01-14 15:22:14 +00:00
|
|
|
/*) # An absolute path
|
|
|
|
GNUSTEP_USER_ROOT="$GNUSTEP_USER_DIR";;
|
|
|
|
*) # Something else
|
|
|
|
GNUSTEP_USER_ROOT="$GNUSTEP_HOME/$GNUSTEP_USER_DIR";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# This variable was used to set up GNUSTEP_USER_ROOT which is the one
|
|
|
|
# that is actually exported; we can now drop it from the environment.
|
|
|
|
unset GNUSTEP_USER_DIR
|
2008-01-14 10:41:13 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# This is deprecated and will be removed
|
|
|
|
export GNUSTEP_USER_ROOT
|
|
|
|
fi
|
2005-10-14 10:25:48 +00:00
|
|
|
|
2003-01-26 04:01:10 +00:00
|
|
|
# If multi-platform support is disabled, just use the hardcoded cpu,
|
|
|
|
# vendor and os determined when gnustep-make was configured. The
|
|
|
|
# reason using the hardcoded ones might be better is that config.guess
|
|
|
|
# and similar scripts might even require compiling test files to
|
|
|
|
# determine the platform - but then you can't source GNUstep.sh
|
|
|
|
# without having gcc, binutils, libc6-dev installed. Which can be a
|
|
|
|
# problem for end-users who are not developers and have no development
|
|
|
|
# tools installed. To prevent this problem, unless we were configured
|
|
|
|
# to determine the platform at run time, by default we use the
|
|
|
|
# hardcoded values of GNUSTEP_HOST*.
|
|
|
|
if [ -z "@GNUSTEP_MULTI_PLATFORM@" ]; then
|
|
|
|
GNUSTEP_HOST=@target@
|
|
|
|
GNUSTEP_HOST_CPU=@clean_target_cpu@
|
|
|
|
GNUSTEP_HOST_VENDOR=@clean_target_vendor@
|
|
|
|
GNUSTEP_HOST_OS=@clean_target_os@
|
|
|
|
fi
|
|
|
|
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
# Determine the host information
|
|
|
|
#
|
1999-09-09 02:56:20 +00:00
|
|
|
if [ -z "$GNUSTEP_HOST" ]; then
|
2002-01-11 12:34:21 +00:00
|
|
|
# Not all shells (e.g. /bin/sh on FreeBSD < 4.0 or ash) have pushd/popd
|
2000-03-20 18:46:29 +00:00
|
|
|
tmpdir=`pwd`; cd /tmp
|
2000-02-19 00:40:47 +00:00
|
|
|
GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.guess`
|
|
|
|
GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.sub $GNUSTEP_HOST`
|
2002-04-04 14:19:13 +00:00
|
|
|
cd "$tmpdir"
|
2002-01-11 12:34:21 +00:00
|
|
|
unset tmpdir
|
1999-09-09 02:56:20 +00:00
|
|
|
fi
|
1997-09-22 22:49:02 +00:00
|
|
|
|
2001-03-15 01:02:27 +00:00
|
|
|
if [ -z "$GNUSTEP_HOST_CPU" ]; then
|
|
|
|
GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_HOST`
|
|
|
|
GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_HOST_CPU`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$GNUSTEP_HOST_VENDOR" ]; then
|
|
|
|
GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_HOST`
|
|
|
|
GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
|
|
|
|
fi
|
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
if [ -z "$GNUSTEP_HOST_OS" ]; then
|
2001-03-15 01:02:27 +00:00
|
|
|
GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_HOST`
|
|
|
|
GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_HOST_OS`
|
|
|
|
fi
|
1997-09-22 22:49:02 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ ! "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
# These variables are deprecated for usage in shell scripts; you
|
|
|
|
# need to use gnustep-config to get them in a shell script.
|
|
|
|
export GNUSTEP_HOST GNUSTEP_HOST_CPU GNUSTEP_HOST_VENDOR GNUSTEP_HOST_OS
|
|
|
|
|
|
|
|
# Even in strict gnustep-make v2 mode, we export them at the end
|
|
|
|
# if explicitly requested to export all variables.
|
|
|
|
fi
|
1997-09-22 22:49:02 +00:00
|
|
|
|
2007-02-13 14:19:37 +00:00
|
|
|
# Now load in all the remaining paths
|
|
|
|
. $GNUSTEP_MAKEFILES/filesystem.sh
|
|
|
|
|
2007-02-14 02:38:15 +00:00
|
|
|
# No longer needed
|
|
|
|
unset GNUSTEP_HOME
|
|
|
|
|
2007-02-14 05:47:05 +00:00
|
|
|
# Determine if the paths look like Windows paths that need fixing
|
|
|
|
fixup_paths=no
|
2007-12-20 04:02:20 +00:00
|
|
|
# Here we want to use `...` but the only portable way to use it when
|
|
|
|
# there are "..." inside the expression (ie, it's actually
|
|
|
|
# `..."..."...`) seems to be to use it in variable assignments. So we
|
|
|
|
# use a temporary variable and assign the result of `...` to it
|
|
|
|
path_check=`echo "$GNUSTEP_MAKEFILES" | sed 's|^[a-zA-Z]:/.*$||'`
|
|
|
|
if [ -z "$path_check" ]; then
|
2007-02-14 05:47:05 +00:00
|
|
|
fixup_paths=yes
|
|
|
|
fi
|
2007-12-20 04:02:20 +00:00
|
|
|
unset path_check
|
2007-02-13 14:19:37 +00:00
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
unset GNUSTEP_PATHLIST
|
|
|
|
else
|
|
|
|
# GNUSTEP_PATHLIST is deprecated and will be removed.
|
|
|
|
#
|
|
|
|
# GNUSTEP_PATHLIST is like an abstract path-like shell variable, which
|
2008-01-15 14:39:55 +00:00
|
|
|
# can be used to search the gnustep directories.
|
2008-01-14 15:22:14 +00:00
|
|
|
#
|
|
|
|
if [ -z "$GNUSTEP_PATHLIST" ]; then
|
|
|
|
|
|
|
|
GNUSTEP_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_ROOT" "$GNUSTEP_LOCAL_ROOT" "$GNUSTEP_NETWORK_ROOT" "$GNUSTEP_SYSTEM_ROOT" $fixup_paths`
|
|
|
|
export GNUSTEP_PATHLIST
|
|
|
|
fi
|
2000-06-13 15:14:23 +00:00
|
|
|
fi
|
2001-10-17 03:22:41 +00:00
|
|
|
|
2002-04-04 15:18:20 +00:00
|
|
|
#
|
|
|
|
# Add path to Tools to PATH
|
|
|
|
#
|
2008-10-21 14:45:48 +00:00
|
|
|
# NB: functionally, print_unique_pathlist.sh is mostly used to do the
|
|
|
|
# fixup_paths thing, since duplicated paths will automatically be
|
|
|
|
# checked below when we add them to the PATH. On the other hand,
|
|
|
|
# removing duplicates later can be expensive since we do a echo+grep
|
|
|
|
# for each duplicate. When there are many duplicates it's faster to
|
|
|
|
# use print_unique_pathlist.sh first to remove them and skip the
|
|
|
|
# echos+greps later.
|
2007-02-14 05:47:05 +00:00
|
|
|
GNUSTEP_TOOLS_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_TOOLS" "$GNUSTEP_LOCAL_TOOLS" "$GNUSTEP_NETWORK_TOOLS" "$GNUSTEP_SYSTEM_TOOLS" $fixup_paths`
|
|
|
|
|
2007-02-16 20:14:44 +00:00
|
|
|
# Now, we check the paths in GNUSTEP_*_ADMIN_TOOLS. These paths
|
|
|
|
# should only be used by Administrators -- normal users don't have
|
|
|
|
# enough powers to use those tools to do useful things. Our test for
|
|
|
|
# being an 'Administrator' is that anyone who can write to an Admin
|
|
|
|
# directory can be considered powerful enough to use those tools.
|
|
|
|
|
|
|
|
# FIXME: Unfortunately, this doesn't work if the Admin directory
|
|
|
|
# is mounted read-only, so a better test is required!
|
|
|
|
|
|
|
|
# So we examine GNUSTEP_*_ADMIN_TOOLS; if we find any path in that
|
|
|
|
# list that exists and that we can write to, we add it to our PATH.
|
|
|
|
for dir in "$GNUSTEP_SYSTEM_ADMIN_TOOLS" "$GNUSTEP_NETWORK_ADMIN_TOOLS" "$GNUSTEP_LOCAL_ADMIN_TOOLS" "$GNUSTEP_USER_ADMIN_TOOLS"; do
|
|
|
|
if [ -d "$dir" -a -w "$dir" ]; then
|
|
|
|
# Only add the new dir if it's not already in GNUSTEP_TOOLS_PATHLIST
|
2008-12-05 09:49:10 +00:00
|
|
|
if (echo ":${GNUSTEP_TOOLS_PATHLIST}:" \
|
|
|
|
|grep -v ":${dir}:" >/dev/null); then
|
2007-02-16 20:14:44 +00:00
|
|
|
GNUSTEP_TOOLS_PATHLIST="$dir:$GNUSTEP_TOOLS_PATHLIST"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
|
|
|
# And now, we put the results into PATH
|
|
|
|
#
|
2007-01-09 11:25:15 +00:00
|
|
|
old_IFS="$IFS"
|
1999-06-02 03:16:12 +00:00
|
|
|
IFS=:
|
2007-02-14 05:47:05 +00:00
|
|
|
for dir in $GNUSTEP_TOOLS_PATHLIST; do
|
2002-04-04 15:52:35 +00:00
|
|
|
|
|
|
|
# Prepare the path_fragment
|
2006-10-02 15:54:56 +00:00
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "no" ]; then
|
2016-06-25 07:12:41 +00:00
|
|
|
path_fragment="$dir:$dir/${GNUSTEP_HOST_CPU}-${GNUSTEP_HOST_OS}/${LIBRARY_COMBO}:$dir/${GNUSTEP_HOST_CPU}-${GNUSTEP_HOST_OS}"
|
2002-04-04 15:52:35 +00:00
|
|
|
else
|
2007-02-14 05:47:05 +00:00
|
|
|
path_fragment="$dir"
|
2002-04-04 15:52:35 +00:00
|
|
|
fi
|
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
# Add it to PATH, but only if not already there (eg, typically /usr/bin is already there)
|
|
|
|
if [ -z "$PATH" ]; then
|
|
|
|
PATH="$path_fragment"
|
2002-04-04 15:52:35 +00:00
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
PATH="${path_fragment}:${PATH}"
|
|
|
|
fi
|
2000-12-05 16:11:55 +00:00
|
|
|
fi
|
2002-04-04 15:52:35 +00:00
|
|
|
|
1999-06-02 03:16:12 +00:00
|
|
|
done
|
2007-01-09 11:25:15 +00:00
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
2002-01-11 12:34:21 +00:00
|
|
|
unset dir
|
2008-10-21 14:45:48 +00:00
|
|
|
unset path_fragment
|
2007-02-14 05:47:05 +00:00
|
|
|
unset GNUSTEP_TOOLS_PATHLIST
|
2000-06-13 15:14:23 +00:00
|
|
|
export PATH
|
1999-07-15 15:31:42 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
# Determine the library paths
|
|
|
|
GNUSTEP_LIBRARIES_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_LIBRARIES" "$GNUSTEP_LOCAL_LIBRARIES" "$GNUSTEP_NETWORK_LIBRARIES" "$GNUSTEP_SYSTEM_LIBRARIES" $fixup_paths`
|
2007-02-14 05:47:05 +00:00
|
|
|
|
2007-01-09 11:25:15 +00:00
|
|
|
old_IFS="$IFS"
|
2002-04-04 14:27:57 +00:00
|
|
|
IFS=:
|
2008-10-21 14:45:48 +00:00
|
|
|
for dir in $GNUSTEP_LIBRARIES_PATHLIST; do
|
2002-04-04 15:52:35 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
# prepare the path_fragment for libraries and this dir
|
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "yes" ]; then
|
|
|
|
path_fragment="$dir"
|
|
|
|
else
|
2016-06-25 07:12:41 +00:00
|
|
|
path_fragment="$dir/$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS/$LIBRARY_COMBO:$dir/$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS"
|
2008-10-21 14:45:48 +00:00
|
|
|
fi
|
2002-04-04 15:52:35 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
# Append the path_fragment to lib_paths ... in a different way,
|
|
|
|
# depending on the machine we're on.
|
|
|
|
case "$GNUSTEP_HOST_OS" in
|
|
|
|
|
|
|
|
*nextstep4* | *darwin*)
|
|
|
|
if [ -z "$DYLD_LIBRARY_PATH" ]; then
|
|
|
|
DYLD_LIBRARY_PATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${DYLD_LIBRARY_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
DYLD_LIBRARY_PATH="$path_fragment:$DYLD_LIBRARY_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export DYLD_LIBRARY_PATH;;
|
|
|
|
|
|
|
|
*hpux*)
|
|
|
|
if [ -z "$SHLIB_PATH" ]; then
|
|
|
|
SHLIB_PATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${SHLIB_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
SHLIB_PATH="$path_fragment:$SHLIB_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export SHLIB_PATH;
|
|
|
|
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
|
|
|
LD_LIBRARY_PATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${LD_LIBRARY_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
LD_LIBRARY_PATH="$path_fragment:$LD_LIBRARY_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
|
|
|
LD_LIBRARY_PATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${LD_LIBRARY_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
LD_LIBRARY_PATH="$path_fragment:$LD_LIBRARY_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH;;
|
|
|
|
esac
|
|
|
|
done
|
2007-01-09 11:25:15 +00:00
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
2002-04-08 01:56:17 +00:00
|
|
|
unset dir
|
2008-10-21 14:45:48 +00:00
|
|
|
unset path_fragment
|
2001-05-05 10:44:11 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
unset GNUSTEP_LIBRARIES_PATHLIST
|
2001-05-05 10:44:11 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
|
|
|
|
# Determine the framework paths - but only on Darwin since it's the
|
|
|
|
# only platform where this is of any use.
|
|
|
|
case "$GNUSTEP_HOST_OS" in
|
|
|
|
|
|
|
|
*darwin*)
|
|
|
|
GNUSTEP_FRAMEWORKS_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_LIBRARY/Frameworks" "$GNUSTEP_LOCAL_LIBRARY/Frameworks" "$GNUSTEP_NETWORK_LIBRARY/Frameworks" "$GNUSTEP_SYSTEM_LIBRARY/Frameworks" $fixup_paths`
|
|
|
|
|
|
|
|
old_IFS="$IFS"
|
|
|
|
IFS=:
|
|
|
|
for dir in $GNUSTEP_FRAMEWORKS_PATHLIST; do
|
|
|
|
|
|
|
|
# prepare the path_fragment for frameworks
|
|
|
|
path_fragment="$dir"
|
|
|
|
|
|
|
|
# The code below has been temporarily removed, because...
|
|
|
|
# Frameworks in GNUstep-make are supported by creating a link like
|
2016-07-08 13:09:17 +00:00
|
|
|
#
|
2008-10-21 14:45:48 +00:00
|
|
|
# Libraries/libMyFramework.dylib ->
|
|
|
|
# Frameworks/MyFramework.framework/Versions/Current/libMyFramework.dylib,
|
|
|
|
#
|
|
|
|
# to mitigate the fact that FSF GCC does not support a -framework flag.
|
|
|
|
#
|
|
|
|
# On Darwin, however, we partially emulate -framework by setting the
|
|
|
|
# "install_name" to the framework name during linking. The dynamic
|
|
|
|
# linker (dyld) is smart enough to find the framework under this name,
|
|
|
|
# but only if DYLD_FRAMEWORK_PATH is set (unless we set the
|
|
|
|
# "install_name" to an absolute path, which we don't). We'd really like
|
|
|
|
# to fully support -framework, though.
|
|
|
|
#
|
|
|
|
# Use otool -L MyApplication.app/MyApplication, for instance, to see
|
|
|
|
# how the shared libraries/frameworks are linked.
|
|
|
|
#
|
|
|
|
# if [ "$LIBRARY_COMBO" = "apple-apple-apple" -o \
|
|
|
|
# "$LIBRARY_COMBO" = "apple" ]; then
|
2016-07-08 13:09:17 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
if [ -z "$DYLD_FRAMEWORK_PATH" ]; then
|
|
|
|
DYLD_FRAMEWORK_PATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${DYLD_FRAMEWORK_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
DYLD_FRAMEWORK_PATH="$path_fragment:$DYLD_FRAMEWORK_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export DYLD_FRAMEWORK_PATH
|
|
|
|
done
|
|
|
|
|
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
|
|
|
unset dir
|
|
|
|
unset path_fragment
|
|
|
|
|
|
|
|
unset GNUSTEP_FRAMEWORKS_PATHLIST
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2001-05-05 10:44:11 +00:00
|
|
|
|
2002-10-05 00:11:53 +00:00
|
|
|
#
|
2008-10-21 14:45:48 +00:00
|
|
|
# Setup Java CLASSPATH and Guile GUILE_LOAD_PATH
|
2002-10-05 00:11:53 +00:00
|
|
|
#
|
2008-10-21 14:45:48 +00:00
|
|
|
GNUSTEP_LIBRARY_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_LIBRARY" "$GNUSTEP_LOCAL_LIBRARY" "$GNUSTEP_NETWORK_LIBRARY" "$GNUSTEP_SYSTEM_LIBRARY" $fixup_paths`
|
|
|
|
|
2002-10-05 00:11:53 +00:00
|
|
|
old_IFS="$IFS"
|
|
|
|
IFS=:
|
2007-02-14 05:47:05 +00:00
|
|
|
for dir in $GNUSTEP_LIBRARY_PATHLIST; do
|
2002-10-05 00:11:53 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
path_fragment="$dir/Libraries/Java"
|
|
|
|
if [ -z "$CLASSPATH" ]; then
|
|
|
|
CLASSPATH="$path_fragment"
|
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${CLASSPATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2011-05-03 07:40:10 +00:00
|
|
|
CLASSPATH="$path_fragment:$CLASSPATH"
|
2008-10-21 14:45:48 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
path_fragment="$dir/Libraries/Guile"
|
|
|
|
if [ -z "$GUILE_LOAD_PATH" ]; then
|
|
|
|
GUILE_LOAD_PATH="$path_fragment"
|
2002-10-05 00:11:53 +00:00
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${GUILE_LOAD_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
GUILE_LOAD_PATH="$path_fragment:$GUILE_LOAD_PATH"
|
|
|
|
fi
|
2002-10-05 00:11:53 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
|
|
|
unset dir
|
2008-10-21 14:45:48 +00:00
|
|
|
unset path_fragment
|
2011-03-22 15:27:46 +00:00
|
|
|
unset GNUSTEP_LIBRARY_PATHLIST
|
2008-10-21 14:45:48 +00:00
|
|
|
export CLASSPATH
|
2002-10-05 00:11:53 +00:00
|
|
|
export GUILE_LOAD_PATH
|
|
|
|
|
2007-01-09 11:25:15 +00:00
|
|
|
#
|
|
|
|
# Make sure info files, that we install by default into
|
|
|
|
# xxx/Library/Documentation/info, are found by the info browsing
|
|
|
|
# programs. To get this effect, we add those paths to INFOPATH.
|
|
|
|
#
|
2007-02-26 15:20:05 +00:00
|
|
|
GNUSTEP_INFO_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_DOC_INFO" "$GNUSTEP_LOCAL_DOC_INFO" "$GNUSTEP_NETWORK_DOC_INFO" "$GNUSTEP_SYSTEM_DOC_INFO" $fixup_paths`
|
2007-01-09 11:25:15 +00:00
|
|
|
old_IFS="$IFS"
|
|
|
|
IFS=:
|
2007-02-14 05:47:05 +00:00
|
|
|
for dir in $GNUSTEP_INFO_PATHLIST; do
|
2007-01-09 11:25:15 +00:00
|
|
|
|
2008-10-21 14:45:48 +00:00
|
|
|
if [ -z "$INFOPATH" ]; then
|
|
|
|
# The ':' at the end means to use the built-in paths after searching
|
|
|
|
# the INFOPATH we provide.
|
|
|
|
INFOPATH="${dir}:"
|
2007-01-09 11:25:15 +00:00
|
|
|
else
|
2008-12-05 09:49:10 +00:00
|
|
|
if ( echo ":${INFOPATH}:"\
|
|
|
|
|grep -v ":${dir}:" >/dev/null ); then
|
2008-10-21 14:45:48 +00:00
|
|
|
INFOPATH="$INFOPATH:${dir}:"
|
|
|
|
fi
|
2007-01-09 11:25:15 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
|
|
|
unset dir
|
2007-02-14 05:47:05 +00:00
|
|
|
unset GNUSTEP_INFO_PATHLIST
|
2008-10-21 14:45:48 +00:00
|
|
|
export INFOPATH
|
2007-01-09 11:25:15 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
if [ "$GNUSTEP_HAS_PKGCONFIG" = "yes" ]; then
|
|
|
|
# Determine the library paths
|
|
|
|
GNUSTEP_PKGCONFIG_PATHLIST=`$GNUSTEP_MAKEFILES/print_unique_pathlist.sh "$GNUSTEP_USER_LIBRARIES" "$GNUSTEP_LOCAL_LIBRARIES" "$GNUSTEP_NETWORK_LIBRARIES" "$GNUSTEP_SYSTEM_LIBRARIES" $fixup_paths`
|
|
|
|
|
|
|
|
old_IFS="$IFS"
|
|
|
|
IFS=:
|
|
|
|
GNUSTEP_PKGCONFIG_FRAGMENT=pkgconfig
|
|
|
|
|
|
|
|
for dir in $GNUSTEP_PKGCONFIG_PATHLIST; do
|
|
|
|
|
|
|
|
# prepare the path_fragment for libraries and this dir
|
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "yes" ]; then
|
|
|
|
path_fragment="$dir/$GNUSTEP_PKGCONFIG_FRAGMENT"
|
|
|
|
else
|
|
|
|
path_fragment="$dir/$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$GNUSTEP_PKGCONFIG_FRAGMENT:$dir/$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS/$GNUSTEP_PKGCONFIG_FRAGMENT"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$PKG_CONFIG_PATH" ]; then
|
|
|
|
PKG_CONFIG_PATH="$path_fragment"
|
|
|
|
else
|
|
|
|
if ( echo ":${PKG_CONFIG_PATH}:"\
|
|
|
|
|grep -v ":${path_fragment}:" >/dev/null ); then
|
|
|
|
PKG_CONFIG_PATH="$path_fragment:$PKG_CONFIG_PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export PKG_CONFIG_PATH
|
|
|
|
|
|
|
|
done
|
|
|
|
IFS="$old_IFS"
|
|
|
|
unset old_IFS
|
|
|
|
unset dir
|
|
|
|
unset path_fragment
|
|
|
|
|
|
|
|
unset GNUSTEP_PKGCONFIG_FRAGMENT
|
|
|
|
unset GNUSTEP_PKGCONFIG_PATHLIST
|
|
|
|
unset GNUSTEP_HAS_PKGCONFIG
|
|
|
|
fi # [ "$GNUSTEP_HAS_PKGCONFIG" = "yes" ]
|
|
|
|
|
2007-02-13 14:19:37 +00:00
|
|
|
#
|
|
|
|
# Clean up the environment by removing the filesystem variables. Do
|
2007-02-14 05:48:42 +00:00
|
|
|
# it unless we were explicitly requested not to clean it up! Mostly
|
2007-02-13 14:19:37 +00:00
|
|
|
# gnustep-config will request that the environment is not cleaned up,
|
|
|
|
# so it can print out all of the GNUstep variables.
|
|
|
|
#
|
|
|
|
if [ -n "$GNUSTEP_SH_EXPORT_ALL_VARIABLES" ]; then
|
2008-01-14 15:22:14 +00:00
|
|
|
export GNUSTEP_MAKE_STRICT_V2_MODE
|
|
|
|
|
2008-01-14 11:17:34 +00:00
|
|
|
unset GNUSTEP_KEEP_CONFIG_FILE GNUSTEP_KEEP_USER_CONFIG_FILE
|
|
|
|
|
|
|
|
export GNUSTEP_CONFIG_FILE GNUSTEP_USER_CONFIG_FILE
|
|
|
|
|
|
|
|
export GNUSTEP_USER_DEFAULTS_DIR
|
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# Always export these variables even if in strict gnustep-make v2
|
|
|
|
# mode, so that for example gnustep-config can determine them.
|
|
|
|
export GNUSTEP_IS_FLATTENED LIBRARY_COMBO
|
|
|
|
export GNUSTEP_HOST GNUSTEP_HOST_CPU GNUSTEP_HOST_VENDOR GNUSTEP_HOST_OS
|
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
export GNUSTEP_SYSTEM_APPS GNUSTEP_SYSTEM_ADMIN_APPS GNUSTEP_SYSTEM_WEB_APPS GNUSTEP_SYSTEM_TOOLS GNUSTEP_SYSTEM_ADMIN_TOOLS
|
2007-02-16 20:14:44 +00:00
|
|
|
export GNUSTEP_SYSTEM_LIBRARY GNUSTEP_SYSTEM_HEADERS GNUSTEP_SYSTEM_LIBRARIES
|
2007-02-26 15:20:05 +00:00
|
|
|
export GNUSTEP_SYSTEM_DOC GNUSTEP_SYSTEM_DOC_MAN GNUSTEP_SYSTEM_DOC_INFO
|
2007-02-13 14:19:37 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
export GNUSTEP_NETWORK_APPS GNUSTEP_NETWORK_ADMIN_APPS GNUSTEP_NETWORK_WEB_APPS GNUSTEP_NETWORK_TOOLS GNUSTEP_NETWORK_ADMIN_TOOLS
|
2007-02-16 20:14:44 +00:00
|
|
|
export GNUSTEP_NETWORK_LIBRARY GNUSTEP_NETWORK_HEADERS GNUSTEP_NETWORK_LIBRARIES
|
2007-02-26 15:20:05 +00:00
|
|
|
export GNUSTEP_NETWORK_DOC GNUSTEP_NETWORK_DOC_MAN GNUSTEP_NETWORK_DOC_INFO
|
2007-02-13 14:19:37 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
export GNUSTEP_LOCAL_APPS GNUSTEP_LOCAL_ADMIN_APPS GNUSTEP_LOCAL_WEB_APPS GNUSTEP_LOCAL_TOOLS GNUSTEP_LOCAL_ADMIN_TOOLS
|
2007-02-16 20:14:44 +00:00
|
|
|
export GNUSTEP_LOCAL_LIBRARY GNUSTEP_LOCAL_HEADERS GNUSTEP_LOCAL_LIBRARIES
|
2007-02-26 15:20:05 +00:00
|
|
|
export GNUSTEP_LOCAL_DOC GNUSTEP_LOCAL_DOC_MAN GNUSTEP_LOCAL_DOC_INFO
|
2007-02-16 20:14:44 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
export GNUSTEP_USER_APPS GNUSTEP_USER_ADMIN_APPS GNUSTEP_USER_WEB_APPS GNUSTEP_USER_TOOLS GNUSTEP_USER_ADMIN_TOOLS
|
2007-02-16 20:14:44 +00:00
|
|
|
export GNUSTEP_USER_LIBRARY GNUSTEP_USER_HEADERS GNUSTEP_USER_LIBRARIES
|
2007-02-26 15:20:05 +00:00
|
|
|
export GNUSTEP_USER_DOC GNUSTEP_USER_DOC_MAN GNUSTEP_USER_DOC_INFO
|
2008-01-14 09:22:29 +00:00
|
|
|
|
|
|
|
export GNUSTEP_SYSTEM_USERS_DIR GNUSTEP_LOCAL_USERS_DIR GNUSTEP_NETWORK_USERS_DIR
|
2007-02-13 14:19:37 +00:00
|
|
|
else
|
2008-01-14 15:22:14 +00:00
|
|
|
if [ "$GNUSTEP_MAKE_STRICT_V2_MODE" = "yes" ]; then
|
|
|
|
unset GNUSTEP_IS_FLATTENED
|
|
|
|
unset LIBRARY_COMBO
|
|
|
|
unset GNUSTEP_HOST
|
|
|
|
unset GNUSTEP_HOST_CPU
|
|
|
|
unset GNUSTEP_HOST_VENDOR
|
|
|
|
unset GNUSTEP_HOST_OS
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset GNUSTEP_MAKE_STRICT_V2_MODE
|
2008-01-14 11:17:34 +00:00
|
|
|
|
|
|
|
# Unset these variables but only if we set them internally; keep
|
|
|
|
# them if they were already in the environment.
|
|
|
|
if [ -z "$GNUSTEP_KEEP_CONFIG_FILE" ]; then
|
|
|
|
unset GNUSTEP_CONFIG_FILE
|
|
|
|
fi
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_KEEP_CONFIG_FILE
|
2008-01-14 11:17:34 +00:00
|
|
|
|
|
|
|
if [ -z "$GNUSTEP_KEEP_USER_CONFIG_FILE" ]; then
|
|
|
|
unset GNUSTEP_USER_CONFIG_FILE
|
|
|
|
fi
|
|
|
|
unset GNUSTEP_KEEP_USER_CONFIG_FILE
|
|
|
|
|
|
|
|
# Always unset these variables
|
|
|
|
unset GNUSTEP_USER_DEFAULTS_DIR
|
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_SYSTEM_APPS
|
|
|
|
unset GNUSTEP_SYSTEM_ADMIN_APPS
|
|
|
|
unset GNUSTEP_SYSTEM_WEB_APPS
|
|
|
|
unset GNUSTEP_SYSTEM_TOOLS
|
|
|
|
unset GNUSTEP_SYSTEM_ADMIN_TOOLS
|
2007-02-13 14:19:37 +00:00
|
|
|
unset GNUSTEP_SYSTEM_LIBRARY
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_SYSTEM_HEADERS
|
|
|
|
unset GNUSTEP_SYSTEM_LIBRARIES
|
|
|
|
unset GNUSTEP_SYSTEM_DOC
|
2007-02-26 15:20:05 +00:00
|
|
|
unset GNUSTEP_SYSTEM_DOC_MAN
|
|
|
|
unset GNUSTEP_SYSTEM_DOC_INFO
|
2007-02-13 14:19:37 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_NETWORK_APPS
|
|
|
|
unset GNUSTEP_NETWORK_ADMIN_APPS
|
|
|
|
unset GNUSTEP_NETWORK_WEB_APPS
|
|
|
|
unset GNUSTEP_NETWORK_TOOLS
|
|
|
|
unset GNUSTEP_NETWORK_ADMIN_TOOLS
|
2007-02-13 14:19:37 +00:00
|
|
|
unset GNUSTEP_NETWORK_LIBRARY
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_NETWORK_HEADERS
|
|
|
|
unset GNUSTEP_NETWORK_LIBRARIES
|
|
|
|
unset GNUSTEP_NETWORK_DOC
|
2007-02-26 15:20:05 +00:00
|
|
|
unset GNUSTEP_NETWORK_DOC_MAN
|
|
|
|
unset GNUSTEP_NETWORK_DOC_INFO
|
2007-02-13 14:19:37 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_LOCAL_APPS
|
|
|
|
unset GNUSTEP_LOCAL_ADMIN_APPS
|
|
|
|
unset GNUSTEP_LOCAL_WEB_APPS
|
|
|
|
unset GNUSTEP_LOCAL_TOOLS
|
|
|
|
unset GNUSTEP_LOCAL_ADMIN_TOOLS
|
2007-02-16 20:14:44 +00:00
|
|
|
unset GNUSTEP_LOCAL_LIBRARY
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_LOCAL_HEADERS
|
|
|
|
unset GNUSTEP_LOCAL_LIBRARIES
|
|
|
|
unset GNUSTEP_LOCAL_DOC
|
2007-02-26 15:20:05 +00:00
|
|
|
unset GNUSTEP_LOCAL_DOC_MAN
|
|
|
|
unset GNUSTEP_LOCAL_DOC_INFO
|
2007-02-16 20:14:44 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_USER_APPS
|
|
|
|
unset GNUSTEP_USER_ADMIN_APPS
|
|
|
|
unset GNUSTEP_USER_WEB_APPS
|
|
|
|
unset GNUSTEP_USER_TOOLS
|
|
|
|
unset GNUSTEP_USER_ADMIN_TOOLS
|
2007-02-13 14:19:37 +00:00
|
|
|
unset GNUSTEP_USER_LIBRARY
|
2016-07-08 13:09:17 +00:00
|
|
|
unset GNUSTEP_USER_HEADERS
|
|
|
|
unset GNUSTEP_USER_LIBRARIES
|
|
|
|
unset GNUSTEP_USER_DOC
|
2007-02-26 15:20:05 +00:00
|
|
|
unset GNUSTEP_USER_DOC_MAN
|
|
|
|
unset GNUSTEP_USER_DOC_INFO
|
2008-01-14 09:22:29 +00:00
|
|
|
|
|
|
|
unset GNUSTEP_SYSTEM_USERS_DIR
|
|
|
|
unset GNUSTEP_LOCAL_USERS_DIR
|
|
|
|
unset GNUSTEP_NETWORK_USERS_DIR
|
2007-02-13 14:19:37 +00:00
|
|
|
fi
|
|
|
|
|
2004-06-15 10:39:10 +00:00
|
|
|
if [ -n "$GS_ZSH_NEED_TO_RESTORE_SET" ]; then
|
2012-02-21 14:21:38 +00:00
|
|
|
unsetopt shwordsplit
|
2004-08-24 14:39:49 +00:00
|
|
|
fi
|
2005-05-22 03:20:14 +00:00
|
|
|
# EOF
|