1998-04-06 03:01:59 +00:00
|
|
|
#!/bin/csh
|
|
|
|
#
|
|
|
|
# GNUstep.csh.in
|
|
|
|
#
|
|
|
|
# Shell initialization for the GNUstep environment.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1998 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
|
|
|
|
#
|
1999-10-11 15:40:37 +00:00
|
|
|
setenv GNUSTEP_ROOT @GNUSTEP_ROOT@
|
1998-04-06 03:01:59 +00:00
|
|
|
setenv GNUSTEP_SYSTEM_ROOT @prefix@
|
1999-04-23 02:54:45 +00:00
|
|
|
if ( ! ${?LIBRARY_COMBO} ) then
|
|
|
|
setenv LIBRARY_COMBO @ac_cv_library_combo@
|
|
|
|
endif
|
1998-04-06 03:01:59 +00:00
|
|
|
|
2000-03-02 19:47:31 +00:00
|
|
|
setenv GNUSTEP_LOCAL_ROOT "${GNUSTEP_ROOT}/Local"
|
1999-10-11 15:40:37 +00:00
|
|
|
setenv GNUSTEP_NETWORK_ROOT
|
1998-04-06 03:01:59 +00:00
|
|
|
setenv GNUSTEP_USER_ROOT ~/GNUstep
|
|
|
|
|
1998-10-06 20:06:01 +00:00
|
|
|
if ( ! ${?GNUSTEP_BUILD_ROOT} ) then
|
1999-11-11 12:15:05 +00:00
|
|
|
setenv GNUSTEP_MAKEFILES ${GNUSTEP_SYSTEM_ROOT}/Makefiles
|
1998-09-03 14:35:49 +00:00
|
|
|
else
|
1999-11-11 12:15:05 +00:00
|
|
|
setenv GNUSTEP_MAKEFILES ${GNUSTEP_BUILD_ROOT}/Makefiles
|
1998-09-03 14:35:49 +00:00
|
|
|
endif
|
|
|
|
|
1998-04-06 03:01:59 +00:00
|
|
|
#
|
|
|
|
# Determine the host information
|
|
|
|
#
|
1999-09-09 02:56:20 +00:00
|
|
|
if ( ! ${?GNUSTEP_HOST} ) then
|
2000-03-02 19:47:31 +00:00
|
|
|
pushd /tmp > /dev/null
|
|
|
|
setenv GNUSTEP_HOST `${GNUSTEP_SYSTEM_ROOT}/Makefiles/config.guess`
|
|
|
|
setenv GNUSTEP_HOST `${GNUSTEP_SYSTEM_ROOT}/Makefiles/config.sub ${GNUSTEP_HOST}`
|
|
|
|
popd > /dev/null
|
1999-09-09 02:56:20 +00:00
|
|
|
endif
|
1998-10-06 20:06:01 +00:00
|
|
|
setenv GNUSTEP_HOST_CPU `${GNUSTEP_SYSTEM_ROOT}/Makefiles/cpu.sh $GNUSTEP_HOST`
|
|
|
|
setenv GNUSTEP_HOST_VENDOR `${GNUSTEP_SYSTEM_ROOT}/Makefiles/vendor.sh $GNUSTEP_HOST`
|
|
|
|
setenv GNUSTEP_HOST_OS `${GNUSTEP_SYSTEM_ROOT}/Makefiles/os.sh $GNUSTEP_HOST`
|
1998-04-06 03:01:59 +00:00
|
|
|
|
|
|
|
# Clean the host
|
1998-10-06 20:06:01 +00:00
|
|
|
setenv GNUSTEP_HOST_CPU `${GNUSTEP_SYSTEM_ROOT}/Makefiles/clean_cpu.sh $GNUSTEP_HOST_CPU`
|
|
|
|
setenv GNUSTEP_HOST_VENDOR `${GNUSTEP_SYSTEM_ROOT}/Makefiles/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
|
|
|
|
setenv GNUSTEP_HOST_OS `${GNUSTEP_SYSTEM_ROOT}/Makefiles/clean_os.sh $GNUSTEP_HOST_OS`
|
1998-04-06 03:01:59 +00:00
|
|
|
|
1998-09-03 14:35:49 +00:00
|
|
|
#
|
|
|
|
# the rest of this file is only executed, if the core already is installed.
|
|
|
|
#
|
|
|
|
|
1998-10-06 20:06:01 +00:00
|
|
|
if ( ! ${?GNUSTEP_BUILD_ROOT} ) then
|
1998-09-03 14:35:49 +00:00
|
|
|
|
1998-04-06 03:01:59 +00:00
|
|
|
#
|
|
|
|
# Add the GNUstep tools directories to the path
|
|
|
|
#
|
1999-06-02 03:16:12 +00:00
|
|
|
if ( ! ${?GNUSTEP_PATHPREFIX_LIST} ) then
|
1999-10-11 15:40:37 +00:00
|
|
|
setenv GNUSTEP_PATHPREFIX_LIST ${GNUSTEP_USER_ROOT}:${GNUSTEP_LOCAL_ROOT}:${GNUSTEP_SYSTEM_ROOT}:${GNUSTEP_NETWORK_ROOT}
|
1999-09-24 18:10:46 +00:00
|
|
|
endif # ( "${GNUSTEP_PATHPREFIX_LIST}" == "" )
|
1999-09-20 08:20:57 +00:00
|
|
|
|
1999-06-04 04:26:07 +00:00
|
|
|
set tp = ""
|
1999-06-07 04:46:35 +00:00
|
|
|
foreach dir ( `/bin/sh -c 'IFS=:; for i in ${GNUSTEP_PATHPREFIX_LIST}; do echo $i; done'` )
|
1999-06-04 04:26:07 +00:00
|
|
|
set tp=${tp}${dir}/Tools:
|
1999-06-28 13:31:25 +00:00
|
|
|
set tp=${tp}${dir}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}:
|
1999-06-02 03:16:12 +00:00
|
|
|
end
|
1999-06-04 04:26:07 +00:00
|
|
|
setenv PATH ${tp}${PATH}
|
1998-04-06 03:01:59 +00:00
|
|
|
|
1999-07-15 15:31:42 +00:00
|
|
|
if ( ! ${?MANPATH} ) then
|
|
|
|
setenv MANPATH ${GNUSTEP_SYSTEM_ROOT}/Library/man:/usr/local/man:/usr/man
|
|
|
|
else
|
|
|
|
setenv MANPATH ${GNUSTEP_SYSTEM_ROOT}/Library/man:${MANPATH}
|
|
|
|
endif
|
|
|
|
|
1998-10-06 20:06:01 +00:00
|
|
|
source ${GNUSTEP_SYSTEM_ROOT}/Makefiles/ld_lib_path.csh
|
1998-04-06 03:01:59 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Perform any user initialization
|
|
|
|
#
|
|
|
|
if ( -e ~/.GNUstep/GNUstep.csh ) then
|
1999-11-11 12:15:05 +00:00
|
|
|
. ~/.GNUstep/GNUstep.csh
|
1998-04-06 03:01:59 +00:00
|
|
|
endif
|
1998-09-03 14:35:49 +00:00
|
|
|
|
1999-06-27 14:33:32 +00:00
|
|
|
if ( -x ${GNUSTEP_SYSTEM_ROOT}/Tools/make_services ) then
|
|
|
|
${GNUSTEP_SYSTEM_ROOT}/Tools/make_services &
|
|
|
|
endif
|
1999-01-07 18:26:43 +00:00
|
|
|
|
1998-09-03 14:35:49 +00:00
|
|
|
endif # ( "${GNUSTEP_BUILD_ROOT}" == "" )
|
1999-11-04 08:19:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Set the Java CLASSPATH (i haven't tested this csh version yet)
|
|
|
|
#
|
1999-11-11 12:15:05 +00:00
|
|
|
if ( ! ${?CLASSPATH} ) then
|
|
|
|
setenv MY_CLASSPATH .
|
1999-11-04 08:19:28 +00:00
|
|
|
else
|
1999-11-11 12:15:05 +00:00
|
|
|
setenv MY_CLASSPATH ${CLASSPATH}:.
|
1999-11-04 08:19:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
setenv CLASSPATH ${GNUSTEP_SYSTEM_ROOT}/Java/:${GNUSTEP_USER_ROOT}/Java/:${GNUSTEP_LOCAL_ROOT}/Java/:${GNUSTEP_NETWORK_ROOT}/Java/:${MY_CLASSPATH}
|
|
|
|
|
1999-11-11 12:15:05 +00:00
|
|
|
unsetenv MY_CLASSPATH
|