5 # This script creates the directory for auto-generated scripts and gets
6 # the current user's account ready to use YETI.
8 # Note: this does not yet ensure that the YETI profile is executed on
9 # shell startup. that can be added manually by editing your .bashrc file.
10 # read the examples/feisty_meow_startup/bashrc_user file for more details.
12 ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && \pwd )"
13 YETI_CORE_SCRIPTS_DIR="$(echo "$ORIGINATING_FOLDER" | tr '\\\\' '/' )"
14 THIS_TOOL_NAME="$(basename "$0")"
16 # set up the feisty_meow dir.
17 pushd "$YETI_CORE_SCRIPTS_DIR/../.." &>/dev/null
18 export FEISTY_MEOW_DIR="$(pwd)"
21 export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"
23 # FEISTY_MEOW_GENERATED is where the generated files feisty_meow uses are located.
24 export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen"
25 if [ ! -z "$WINDIR" -o ! -z "$windir" ]; then
26 # assume they are using windoze.
27 export FEISTY_MEOW_GENERATED="$TMP/zz_auto_gen"
29 if [ ! -d "$FEISTY_MEOW_GENERATED" ]; then
30 mkdir "$FEISTY_MEOW_GENERATED"
32 if [ ! -d "$FEISTY_MEOW_GENERATED/custom" ]; then
33 mkdir "$FEISTY_MEOW_GENERATED/custom"
36 # just a variable we use in here to refer to the generated variables file.
37 GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/fmc_variables.sh"
38 # create the alias file as totally blank.
39 echo -n >"$GENERATED_FEISTY_MEOW_VARIABLES"
40 for i in FEISTY_MEOW_DIR FEISTY_MEOW_SCRIPTS FEISTY_MEOW_GENERATED; do
41 echo "export $i=${!i}" >>"$GENERATED_FEISTY_MEOW_VARIABLES"
44 # create our common aliases.
45 perl "$FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl"
47 echo ==========================================
48 echo Established this set of variables to describe how to find feisty_meow assets:
49 cat "$GENERATED_FEISTY_MEOW_VARIABLES"
50 echo ==========================================