X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcore%2Fprep_feisty_host.sh;h=cb02013f357798b429523fa7f28c68c2fd2397f8;hb=32118711ae1c52638e7dc33c4ae699cfbedd6da9;hp=7574f345dedd6a017c5e4d8dc9aaf4839b229a87;hpb=752de8370db122bab6ba15d4af0a6b7103068b15;p=feisty_meow.git diff --git a/scripts/core/prep_feisty_host.sh b/scripts/core/prep_feisty_host.sh index 7574f345..cb02013f 100644 --- a/scripts/core/prep_feisty_host.sh +++ b/scripts/core/prep_feisty_host.sh @@ -1,22 +1,26 @@ #!/usr/bin/env bash # this is the feisty meow host preparation script. it installs all the packages required to run and build feisty meow scripts and applications. -# this script may still be a bit incomplete; we definitely use a lot of unix and linux tools in different scripts. + +# hmmm: this script may still be a bit incomplete; we definitely use a lot of unix and linux tools in different scripts. # preconditions and dependencies--this script itself depends on: # feisty meow # bash # anything else? -#weird approach here man. -# why are we assuming any part of feisty meow is set up yet? -# the dependencies that the codebase has are why we're installing things below. -# so: -# + intuit the feisty meow location based on relative dir placement. -# + reduce checks to barest presence ones. -# + drop any requirements on feisty functions that might require the -# very code we're installing. +#### + +ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" +CORE_SCRIPTS_DIR="$(echo "$ORIGINATING_FOLDER" | tr '\\\\' '/' )" +THIS_TOOL_NAME="$(basename "$0")" +# set up the feisty_meow dir. +pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null +#source "$CORE_SCRIPTS_DIR/functions.sh" +echo originating folder is $ORIGINATING_FOLDER +export FEISTY_MEOW_APEX="$(/bin/pwd)" +echo feisty now apex is FEISTY_MEOW_APEX=$FEISTY_MEOW_APEX #### @@ -140,7 +144,7 @@ if whichable apt; then exit_on_error $PHASE_MESSAGE elif whichable yum; then # rpm based with yum available... - sudo yum install curl-devel gcc gcc-c++ make mawk openssl-devel.x86_64 zlib-devel + sudo yum install curl-devel gcc gcc-c++ make gawk openssl-devel.x86_64 zlib-devel exit_on_error $PHASE_MESSAGE elif [ ! -z "$IS_DARWIN" ]; then # macos based...