-# initialize the build variables, if possible.
-found_build_vars=0
-if [ ! -z "$REPOSITORY_DIR" ]; then
- # first guess at using the old school bin directory.
- bv="$REPOSITORY_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
+ ##############
+
+ # fallbacks to set crucial variables for feisty meow...
+
+ # set the main root directory variable for the feisty meow codebase.
+ # this is only used for extreme failure modes, when the values were not
+ # pulled in from our auto-generated config.
+ if [ -z "$FEISTY_MEOW_DIR" ]; then
+ if [ -d "$HOME/feisty_meow" ]; then
+ export FEISTY_MEOW_DIR="$HOME/feisty_meow"
+ export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"
+ fi
+ fi
+
+ # similarly, make sure we have someplace to look for our generated files, if
+ # we were not handed a value.
+ if [ -z "$FEISTY_MEOW_GENERATED" ]; then
+ # The generated scripts directory is where automatically generated files live.
+ # It is separate from the main body of the shell scripts in order to keep things from
+ # exploding.
+ export FEISTY_MEOW_GENERATED=$HOME/.zz_auto_gen
+ fi
+
+ ##############
+
+ # umask sets a permission mask for all file creations. the mask used here
+ # disallows writing by the "group" and "others" categories.
+ umask 022
+ # ulimit sets user limits. we set the maximum allowed core dump file size
+ # to zero, because it is obnoxious to see the core dumps from crashed
+ # programs lying around everywhere.
+ ulimit -c 0
+
+ ##############
+
+ # user variables, sort of... if they haven't given themselves a name yet,
+ # then we will make one up for them.
+
+ # define a default name, if one wasn't already set.
+ if [ -z "$NAME" ]; then
+ export NAME='Unset Q. Namington, Fixley Your Name III'
+ fi
+
+ ##############
+
+ # variables for perl.
+
+ export PERLLIB
+ if [ "$OS" != "Windows_NT" ]; then
+ PERLLIB+="/usr/lib/perl5"