changes needed since cygwin is somehow getting a different interpretation of the...
authorChris Koeritz <fred@gruntose.com>
Fri, 21 Aug 2015 22:11:41 +0000 (18:11 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 21 Aug 2015 22:11:41 +0000 (18:11 -0400)
customizing/fred/refred.sh
examples/bashisms/script_location.sh
scripts/core/bootstrap_shells.sh
scripts/generator/bootstrap_build.sh
scripts/rev_control/version_control.sh
scripts/shunit/example_shunit_test.sh

index 644aa76ab89c5c6ee25f285406e155bec7ff9673..06faf84751ed43cc4cc3d22db96eeea656a1788b 100644 (file)
@@ -10,7 +10,7 @@ function refred()
 # this block should execute when the script is actually run, rather
 # than when it's just being sourced.
 if [[ $0 =~ .*refred\.sh.* ]]; then
-  THISDIR="$( \cd "$(\dirname "$0")" && \pwd )"
+  THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"
   export LIGHTWEIGHT_INIT=true
   source "$THISDIR/../../scripts/core/launch_feisty_meow.sh"
   refred
index bdae0fc7735ac04acc2114716d88a1ed5bdc4451..a01dc95af19fa304f63ed8cd4ebbd95c83cbb527 100644 (file)
@@ -3,5 +3,5 @@
 # work properly in a bash script that is included via 'source' or '.'.
 # the first letter of each command is escaped to eliminate the danger of
 # personal aliases or functions disrupting the results.
-ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && \pwd )"
+ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 
index fd86f50e7d80c945b23b99cd5e31330fb25c65d4..0b3e997562a122e1d0a39f2d2ba9d84b81789bbb 100644 (file)
@@ -9,7 +9,7 @@
 # startup.  that can be added manually by editing your .bashrc file.
 # read the examples/feisty_meow_startup/bashrc_user file for more details.
 
-ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && \pwd )"
+ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 CORE_SCRIPTS_DIR="$(echo "$ORIGINATING_FOLDER" | tr '\\\\' '/' )"
 THIS_TOOL_NAME="$(basename "$0")"
 
@@ -17,7 +17,9 @@ THIS_TOOL_NAME="$(basename "$0")"
 pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null
 source "$CORE_SCRIPTS_DIR/functions.sh"
 
-export FEISTY_MEOW_DIR="$(\pwd)"
+#echo originating folder is $ORIGINATING_FOLDER
+export FEISTY_MEOW_DIR="$(/bin/pwd)"
+#echo feisty now is FEISTY_MEOW_DIR=$FEISTY_MEOW_DIR
 
 # repetitive bit stolen from variables.  should make a file out of this somehow.
 IS_DOS=$(uname | grep -i ming)
index 4e074a60438b21aa39d20d542ca3399addb34863..fba2df436dee532fb990460d79c1d15647f2aae1 100644 (file)
@@ -30,7 +30,7 @@ export PATH=/bin:$PATH
 export INCLUDED_FROM_BOOTSTRAP=true
 
 # pull in our build variables using the path to this script.
-export BUILD_SCRIPTS_DIR="$( \cd "$(\dirname "$0")" && \pwd )"
+export BUILD_SCRIPTS_DIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 #echo build scripts dir initial value: $BUILD_SCRIPTS_DIR
 BUILD_SCRIPTS_DIR="$(echo $BUILD_SCRIPTS_DIR | tr '\\\\' '/' )"
 #echo build scripts dir after chewing: $BUILD_SCRIPTS_DIR
index d1b892e0eb44181637277a702d60eb5e53fbb5cd..f76f3301a093d2b3068fe1176cabcf6ca82ce366 100644 (file)
@@ -256,7 +256,7 @@ function generate_rev_ctrl_filelist()
 {
   local dir="$1"; shift
   pushd "$dir" &>/dev/null
-  local dirhere="$( \cd "$(\dirname "$dir")" && \pwd )"
+  local dirhere="$( \cd "$(\dirname "$dir")" && /bin/pwd )"
   local tempfile=$(mktemp /tmp/zz_rev_checkin.XXXXXX)
   echo >$tempfile
   find $dirhere -follow -maxdepth 5 -type d -iname ".svn" -exec echo {}/.. ';' >>$tempfile 2>/dev/null
index 9d389bee41a93d6a5b013cd6a951e6ebfb4a4c0b..ce84616c98f4a66c7ca1a8af52b95e67238ab936 100755 (executable)
@@ -5,7 +5,7 @@
 # Author: Chris Koeritz
 # license gnu gpl v3
 
-export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )"  # obtain the script's working directory.
+export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"  # obtain the script's working directory.
 if [[ ! "$0" =~ ^/.* ]]; then
   # re-run the script with an absolute path if it didn't start out that way; otherwise,
   # shunit is not happy with finding the script.