export BUILD_SCRIPTS_PATH="$( \cd "$(\dirname "$0")" && /bin/pwd )"
#echo build scripts dir initial value: $BUILD_SCRIPTS_PATH
BUILD_SCRIPTS_PATH="$(echo $BUILD_SCRIPTS_PATH | tr '\\\\' '/' )"
+#hmmm: why four backslashes above? trying two in our unix virtual root code below.
#echo build scripts dir after chewing: $BUILD_SCRIPTS_PATH
# load in feisty meow basic scripts, if not already loaded.
mkdir -p "$CLAM_BINARIES"
fi
if [ ! -f "$CLAM_BINARIES/paths.ini" ]; then
- echo "copied paths.ini to binary dir."
cp "$PRODUCTION_STORE/paths.ini" "$CLAM_BINARIES"
+ echo "copied paths.ini to binary dir."
+ fi
+ # set the cygwin root path if we're on cygwin.
+ whichable cygpath
+ if [ $? -eq 0 ]; then
+ # found cygpath, so run it now to get the dossy path of the root ('/' folder).
+ found_root="$(cygpath -w -m /)"
+ if [ $? -ne 0 ]; then
+ echo "Failure to find virtual Unix root folder with cygpath."
+ exit 1322
+ fi
+echo "found root as '$found_root'"
+ # translate any backslashes to forward thinking slashes.
+ found_root=$(echo $found_root | tr '\\' '/')
+echo "processed root is now: '$found_root'"
+ # edit the entry in place to correct the default path.
+ sed -i -e "s%VirtualUnixRoot=.*%VirtualUnixRoot=$found_root%" "$CLAM_BINARIES/paths.ini"
+echo "paths file now has:"
+cat "$CLAM_BINARIES/paths.ini"
fi
}
declare -a BUILD_DEFAULTS=( "BOOT_STRAPPING=t" "OPTIMIZE=t" "REBUILD=t" "DEBUG=" )
# bootstrapping is always turned on for this particular script.
# we also always optimize these builds and turn off the debug flag.
- # rebuild ensures that the new apps are made fresh: "REBUILD=t"
+ # rebuild ensures that the new applications are made fresh: "REBUILD=t"
# it can be turned off when the build bootstrapper is being tested.
# noisy can be added to spew lots of text: "NOISY=t"
# this can help with compilation issues by showing all the flags.
done
fi
-# make the clam shell scripts executable.
-chmod 755 "$CLAM_SCRIPTS"/*.sh
-chmod 755 "$CLAM_SCRIPTS"/cpp/*.sh
-#chmod 755 "$CLAM_SCRIPTS"/csharp/*.sh
-chmod 755 "$FEISTY_MEOW_SCRIPTS/generator/wrapdoze.sh"
-
# rebuild the dependency tool. needed by everything, pretty much, but
# since it's from the xfree project, it doesn't need any of our libraries.
if [ ! -f "$CLAM_BINARIES/makedep$EXE_ENDING" ]; then
popd &>/dev/null
fi
-# rebuild the version tools and other support apps.
+# rebuild the version tools and other support applications.
if [ ! -f "$CLAM_BINARIES/value_tagger$EXE_ENDING" \
-o ! -f "$CLAM_BINARIES/version_stamper$EXE_ENDING" \
-o ! -f "$CLAM_BINARIES/vsts_version_fixer$EXE_ENDING" \
make_code pre_compilation OMIT_VERSIONS=t
make_code OMIT_VERSIONS=t
-#hmmm: really this should check all the expected apps.
+#hmmm: really this should check all the expected applications.
# nice to just have an array of the things built by this guy.
if [ ! -f "$INTERMEDIATE_STORE/version_stamper$EXE_ENDING" ]; then
echo ""