X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fbuild_variables.sh;h=a4a2f4e64bebd2a2e897143baecda1c1d4fc97e0;hb=8079bda7024dc254bd0356f91e44b79ba0edf7b5;hp=c48cf222686045848158b5ab37d73a9c8a1b7d24;hpb=a0ee34b45737d0bdb6c74e0ee9165da42da76b67;p=feisty_meow.git diff --git a/scripts/generator/build_variables.sh b/scripts/generator/build_variables.sh index c48cf222..a4a2f4e6 100644 --- a/scripts/generator/build_variables.sh +++ b/scripts/generator/build_variables.sh @@ -32,13 +32,6 @@ # Please send any updates to: fred@gruntose.com ############## -# prerequisites for this script: -# -# (1) the script should be run with a full path, so that it can decide where -# it lives with minimal fuss. -# (2) on windows, the msys bin directory should already be in the path so that -# tools like dirname are already available. - # here is where we compute the locations for the build's pieces, based on # where this script is located. we currently assume that the build scripts # like this one are at the same height in the hierarchy as the clam scripts @@ -54,19 +47,6 @@ PARM_1="$1" # helpful build function zone. source $FEISTY_MEOW_SCRIPTS/core/functions.sh - # load msys_to_dos_path and dos_to_msys_path. - -#### switches from a /X/path form to an X:/ form. -###function msys_to_dos_path() { -### # we always remove dos slashes in favor of forward slashes. -### echo "$1" | sed -e 's/\\/\//g' | sed -e 's/\/\([a-zA-Z]\)\/\(.*\)/\1:\/\2/' -###} - -#### switches from an X:/ form to an /X/path form. -###function dos_to_msys_path() { -### # we always remove dos slashes in favor of forward slashes. -### echo "$1" | sed -e 's/\\/\//g' | sed -e 's/\([a-zA-Z]\):\/\(.*\)/\/\1\/\2/' -###} ############## @@ -75,20 +55,16 @@ if [ ! -z "$PARM_1" ]; then # use the first real parameter since this is probably the 'source' version. export BUILD_SCRIPTS_DIR="$(dirname "$PARM_1")" THIS_TOOL_NAME="$(basename "$PARM_1")" -echo ==sourced version buildscriptsdir is $BUILD_SCRIPTS_DIR else # use the zeroth parameter, since we know nothing more about our name. export BUILD_SCRIPTS_DIR="$(dirname "$PARM_0")" THIS_TOOL_NAME="$(basename "$PARM_0")" -echo ==bashed version buildscriptsdir is $BUILD_SCRIPTS_DIR fi BUILD_SCRIPTS_DIR="$(cd $(echo $BUILD_SCRIPTS_DIR | tr '\\\\' '/' ); \pwd)" -echo "==buildvars buildscriptsdir is $BUILD_SCRIPTS_DIR" # figure out the other paths based on where we found this script. export BUILDING_HIERARCHY="$(echo "$BUILD_SCRIPTS_DIR" | sed -e 's/\(.*\)\/[^\/]*/\1/')" export CLAM_DIR="$(cd $BUILD_SCRIPTS_DIR/../clam ; \pwd)" -echo "==buildvars clamdir is $CLAM_DIR" # synonym to make other builds happy. export BUILDER_DIR="$BUILDING_HIERARCHY" @@ -112,23 +88,6 @@ if [ ! -z "$SHELL_DEBUG" ]; then echo "[OS is \"$OPERATING_SYSTEM\"]" fi -#hmmm: all this stuff is highly questionable value now. -#### we create the variable FEISTY_MEOW_DIR, but we keep the dos form of -#### the path, because otherwise lots of bad things happens when passing the -#### folders around to visual studio commands that don't allow a space after them. -###if [ -d "$BUILDING_HIERARCHY/source" ]; then -### # old style repository is same height as building hierarchy. -### export FEISTY_MEOW_DIR="$BUILDING_HIERARCHY" -###else -### # new style repository is a level above the build hierarchy. -### export FEISTY_MEOW_DIR="$(echo "$BUILDING_HIERARCHY" | sed -e 's/\(.*\)\/[^\/]*/\1/')" -###fi -### -###if [ "$OPERATING_SYSTEM" = "WIN32" ]; then -### # make sure repository dir looks right on windoze. -### export FEISTY_MEOW_DIR="$(msys_to_dos_path "$FEISTY_MEOW_DIR")" -###fi - if [ ! -z "$SHELL_DEBUG" ]; then echo "[FEISTY_MEOW_DIR is $FEISTY_MEOW_DIR]" fi @@ -193,7 +152,6 @@ fi # now compute some more paths with a bit of "heuristics" for where we can # find the source code. export TOOL_SOURCES="$FEISTY_MEOW_DIR/nucleus/tools" -echo "==tool source is $TOOL_SOURCES" if [ -z "$got_bad" -a ! -d "$TOOL_SOURCES/dependency_tool" -o ! -d "$TOOL_SOURCES/clam_tools" ]; then echo "This script cannot locate the tool source code folder. This is where the" echo "dependency_tool and clam_tools folders are expected to be."