mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 05:40:48 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@3539 72102866-910b-0410-8b05-ffd578937521
97 lines
2.9 KiB
Bash
Executable file
97 lines
2.9 KiB
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# GNUstep.sh.in
|
|
#
|
|
# Shell initialization for the GNUstep environment.
|
|
#
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
#
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
#
|
|
# 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
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# You should have received a copy of the GNU General Public
|
|
# License along with this library; see the file COPYING.LIB.
|
|
# If not, write to the Free Software Foundation,
|
|
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
|
|
#
|
|
# Set the GNUstep system root and local root
|
|
#
|
|
GNUSTEP_SYSTEM_ROOT=@prefix@
|
|
LIBRARY_COMBO=@ac_cv_library_combo@
|
|
export GNUSTEP_SYSTEM_ROOT LIBRARY_COMBO
|
|
|
|
GNUSTEP_LOCAL_ROOT=@prefix@/Local
|
|
GNUSTEP_USER_ROOT=~/GNUstep
|
|
export GNUSTEP_LOCAL_ROOT GNUSTEP_USER_ROOT
|
|
|
|
if [ -z "$GNUSTEP_BUILD_ROOT" ]; then
|
|
GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/Makefiles
|
|
else
|
|
GNUSTEP_MAKEFILES=$GNUSTEP_BUILD_ROOT/Makefiles
|
|
fi
|
|
|
|
#
|
|
# Determine the host information
|
|
#
|
|
GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.guess`
|
|
GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_HOST`
|
|
GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_HOST`
|
|
GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_HOST`
|
|
|
|
# Clean the host
|
|
GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_HOST_CPU`
|
|
GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
|
|
GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_HOST_OS`
|
|
|
|
export GNUSTEP_HOST GNUSTEP_HOST_CPU GNUSTEP_HOST_VENDOR GNUSTEP_HOST_OS
|
|
|
|
#
|
|
# the rest of this file is only executed, if the core already is installed.
|
|
#
|
|
if [ -z "$GNUSTEP_BUILD_ROOT" ]; then
|
|
|
|
#
|
|
# Add the GNUstep tools directories to the path
|
|
#
|
|
PATH=$GNUSTEP_SYSTEM_ROOT/Tools:$PATH
|
|
PATH=$GNUSTEP_SYSTEM_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO:$PATH
|
|
PATH=$GNUSTEP_SYSTEM_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS:$PATH
|
|
PATH=$GNUSTEP_LOCAL_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO:$PATH
|
|
PATH=$GNUSTEP_LOCAL_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS:$PATH
|
|
PATH=$GNUSTEP_USER_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO:$PATH
|
|
PATH=$GNUSTEP_USER_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS:$PATH
|
|
|
|
. $GNUSTEP_MAKEFILES/ld_lib_path.sh
|
|
|
|
#
|
|
# Perform any user initialization
|
|
#
|
|
if [ -f ~/.GNUstep/GNUstep.sh ]
|
|
then
|
|
. ~/.GNUstep/GNUstep.sh
|
|
fi
|
|
|
|
#
|
|
# Run 'make_services' in background if possible - updates cache of services
|
|
# and applications/file-extensions known to the applications.
|
|
#
|
|
TDIR=$GNUSTEP_SYSTEM_ROOT/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS
|
|
if [ -f $TDIR/$LIBRARY_COMBO/make_services ]
|
|
then
|
|
$TDIR/$LIBRARY_COMBO/make_services &
|
|
else
|
|
if [ -f $TDIR/make_services ]
|
|
then
|
|
$TDIR/make_services &
|
|
fi
|
|
fi
|
|
|
|
fi # [ -z "$GNUSTEP_BUILD_ROOT" ]
|