-
-# sets the prompts to what we (i.e., i) like...
-# there are four different prompts. the first one, PS1, is the one that users
-# see the most often.
-export PS1='\u@\h $ ';
-### export PS2='> '; export PS3='#? '; export PS4='+ '
-
-# variables for perl.
-export PERLLIB
-if [ "$OS" != "Windows_NT" ]; then
- PERLLIB+="/usr/lib/perl5"
-else
- export PERLIO=:perlio
- # choose perl's IO over the ms-windows version so we can handle file
- # bytes properly.
-fi
-
-# iterate across our sub-directories and find the perl scripts.
-# this currently only looks one level down.
-for i in $FEISTY_MEOW_SCRIPTS/*; do
- if [ -d "$i" ]; then
- # check if there is a perl file present; add the folder to PERLLIB if so.
- ls $i/*.pl &>/dev/null
- if [ $? -eq 0 ]; then
- PERLLIB+=":$i"
- fi
- fi
-done
-#echo PERLLIB is now $PERLLIB
-
-# set this so nechung can find its data.
-export NECHUNG=$LIBDIR/database/fortunes.dat
-
-# ensure we use the right kind of rsh for security.
-export CVS_RSH=ssh
-
-# sets the history length and max file size so we can get some long history around here.
-HISTSIZE=1000000
-HISTFILESIZE=2000000
-
-# set the editor for subversion if it hasn't already been set.
-if [ -z "$SVN_EDITOR" ]; then
-#hmmm: not sure what original reason for having these different was...
- if [ "$OS" == "Windows_NT" ]; then
- export SVN_EDITOR=$(which gvim)
- else
- export SVN_EDITOR=$(which vi)
- fi
-fi
-
-# include variables needed for compiling hoople and using its scripts.
-if [ -z "$FEISTY_MEOW_DIR" ]; then
- if [ -d "$HOME/feisty_meow" ]; then
- export FEISTY_MEOW_DIR="$HOME/feisty_meow"
- fi
-fi
-
-# initialize the build variables, if possible.
-found_build_vars=0
-if [ ! -z "$FEISTY_MEOW_DIR" ]; then
- # first guess at using the old school bin directory.
- bv="$FEISTY_MEOW_DIR/bin/build_variables.sh"
- if [ -f "$bv" ]; then
- # the old bin directory is present, so let's use its build vars.
- source "$bv" "$bv"
- found_build_vars=1
- else
- # try again with the new school location for the file.
- bv="$FEISTY_MEOW_DIR/scripts/generator/build_variables.sh"
- if [ -f "$bv" ]; then
- # yep, that one looks good, so pull in the build defs.
- source "$bv" "$bv"
- found_build_vars=1
- else
- # try once more with new school and assume we're deep.
- bv="$FEISTY_MEOW_DIR/../../scripts/generator/build_variables.sh"
- if [ -f "$bv" ]; then
- # sweet, there is something there.
- source "$bv" "$bv"
- found_build_vars=1
- fi
- fi
- fi
-fi
-
-# augment the configuration if we found our build variables.
-if [ $found_build_vars == 1 ]; then
-
- # the binary directory contains handy programs we use a lot in yeti. we set up the path to it
- # here based on the operating system.
- # note that yeti has recently become more dependent on hoople. hoople was always the source of
- # the binaries, but now we don't ship them with yeti any more as pre-built items. this reduces
- # the size of the code package a lot and shortens up our possible exposure to compromised
- # binaries. people can bootstrap up their own set from hoople now instead.
- export BINDIR=$FEISTY_MEOW_DIR/production/binaries
-
- # add binaries created within build to the path.
- export PATH="$(dos_to_msys_path $BUILD_TOP/build/bin):$PATH"
-
- # Shared libraries are located via this variable.
- export LD_LIBRARY_PATH="$(dos_to_msys_path $LD_LIBRARY_PATH):$(dos_to_msys_path $BINDIR)"
-fi
-
-# Set the path for locating applications.
-export PATH="$(dos_to_msys_path $BINDIR):$(dos_to_msys_path $FEISTY_MEOW_GENERATED):$PATH:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/lib:/usr/games:/usr/bin:."
-
-if [ ! -z "$SHELL_DEBUG" ]; then echo variables initialization ends....; fi
-