#!/bin/csh # # GNUstep.csh.in # # Shell initialization for the GNUstep environment. # # Copyright (C) 1998 Free Software Foundation, Inc. # # Author: Scott Christley # # 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 # setenv GNUSTEP_SYSTEM_ROOT @prefix@ if ( ! ${?LIBRARY_COMBO} ) then setenv LIBRARY_COMBO @ac_cv_library_combo@ endif setenv GNUSTEP_LOCAL_ROOT @prefix@/Local setenv GNUSTEP_USER_ROOT ~/GNUstep if ( ! ${?GNUSTEP_BUILD_ROOT} ) then setenv GNUSTEP_MAKEFILES ${GNUSTEP_SYSTEM_ROOT}/Makefiles else setenv GNUSTEP_MAKEFILES ${GNUSTEP_BUILD_ROOT}/Makefiles endif # # Determine the host information # if ( ! ${?GNUSTEP_HOST} ) then setenv GNUSTEP_HOST `(cd /tmp; ${GNUSTEP_SYSTEM_ROOT}/Makefiles/config.guess)` endif 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` # Clean the host 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` # # the rest of this file is only executed, if the core already is installed. # if ( ! ${?GNUSTEP_BUILD_ROOT} ) then # # Add the GNUstep tools directories to the path # if ( ! ${?GNUSTEP_PATHPREFIX_LIST} ) then setenv GNUSTEP_PATHPREFIX_LIST ${GNUSTEP_USER_ROOT}:${GNUSTEP_LOCAL_ROOT}:${GNUSTEP_SYSTEM_ROOT} endif set tp = "" foreach dir ( `/bin/sh -c 'IFS=:; for i in ${GNUSTEP_PATHPREFIX_LIST}; do echo $i; done'` ) set tp=${tp}${dir}/Tools: set tp=${tp}${dir}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}: end setenv PATH ${tp}${PATH} 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 source ${GNUSTEP_SYSTEM_ROOT}/Makefiles/ld_lib_path.csh # # Perform any user initialization # if ( -e ~/.GNUstep/GNUstep.csh ) then . ~/.GNUstep/GNUstep.csh endif if ( -x ${GNUSTEP_SYSTEM_ROOT}/Tools/make_services ) then ${GNUSTEP_SYSTEM_ROOT}/Tools/make_services & endif endif # ( "${GNUSTEP_BUILD_ROOT}" == "" )