tools-make/MediaBook.sh
Scott Christley 4671af8ef2 Enhance MediaBook functions to easily switch roots and library combo.
Minor bug fixes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2634 72102866-910b-0410-8b05-ffd578937521
1997-11-14 01:03:10 +00:00

69 lines
1.4 KiB
Bash

#
# MediaBook.sh
#
# Variable initialization for the MediaBook environment
#
# Copyright (C) 1997 NET-Community
#
# 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.
#
if [ -z $1 ]; then
MB_ROOT=~
else
MB_ROOT=$1
fi
export MB_ROOT
#
# Save the original environment variables
#
MB_ORIG_PATH=$PATH
MB_ORIG_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export MB_ORIG_PATH MB_PROD_LD_LIBRARY_PATH
#
# GCC environment variables
#
#GCC_EXEC_PREFIX=$GNUSTEP_SYSTEM_ROOT/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/gcc-lib/
#export GCC_EXEC_PREFIX
#
# variables for current system directories
#
MB_SYS=
MB_CUR=
MB_CUR_SYS=
MB_CUR_TOP=
MB_CUR_VER=
MB_CUR_SOU=
MB_CUR_H=
MB_CUR_TST=
MB_CUR_DOC=
MB_CUR_BIN=
export MB_SYS MB_CUR
export MB_CUR_SYS MB_CUR_TOP
export MB_CUR_VER MB_CUR_SOU MB_CUR_H MB_CUR_TST MB_CUR_DOC MB_CUR_BIN
#
# Perform any user initialization
#
if [ -e ~/MB.init ]
then
. ~/MB.init
fi