fi
echo "found root as '$found_root'"
# translate any backslashes to forward thinking slashes.
- found_root=$(echo $found_root | tr '\\' '/')
+ 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 \
fi
}
+function make_code {
+ make $* $BE_NOISY ${BUILD_DEFAULTS[@]}
+ if [ $? != 0 ]; then
+ echo "Failed to make on: $*"
+ exit 2323
+ fi
+}
+
+# removes pcdos eol from any scripts. that assumes that the bootstrap script
+# itself isn't polluted with them.
+function strip_cr {
+ ctrl_m=$'\015'
+ for i in $*; do
+ tempgrep="$(mktemp "$TEMPORARIES_PILE/tempgrep.XXXXXX")"
+ grep -l "$ctrl_m" "$i" >$tempgrep
+ if [ ! -z "$(cat $tempgrep)" ]; then
+ temp="$(mktemp "$TEMPORARIES_PILE/tempsed.XXXXXX")"
+ sed -e "s/$ctrl_m$//" <$i >$temp
+ mv -f $temp $i
+ fi
+ rm "$tempgrep"
+ done
+}
+
##############
# turn off sounds to avoid running the sound player that's not been built yet.
# preconditions for the build process...
-# set up our output directories etc.
-prepare_clam_binaries_dir
-
# set a flag for this process so we can omit certain compilations as necessary.
export BOOT_STRAPPING=true
# noisy can be added to spew lots of text: "NOISY=t"
# this can help with compilation issues by showing all the flags.
-function make_code {
- make $* $BE_NOISY ${BUILD_DEFAULTS[@]}
- if [ $? != 0 ]; then
- echo "Failed to make on: $*"
- exit 2323
- fi
-}
-
-# removes pcdos eol from any scripts. that assumes that the bootstrap script
-# itself isn't polluted with them.
-function strip_cr {
- ctrl_m=$'\015'
- for i in $*; do
- tempgrep="$(mktemp "$TEMPORARIES_PILE/tempgrep.XXXXXX")"
- grep -l "$ctrl_m" "$i" >$tempgrep
- if [ ! -z "$(cat $tempgrep)" ]; then
- temp="$(mktemp "$TEMPORARIES_PILE/tempsed.XXXXXX")"
- sed -e "s/$ctrl_m$//" <$i >$temp
- mv -f $temp $i
- fi
- rm "$tempgrep"
- done
-}
-
# the promote function moves a file from the exe directory into the build's
# bin directory. it performs the copy step and makes the file executable.
# the original name should just be the root of the filename without any
# clean out any current contents.
bash "$BUILD_SCRIPTS_PATH/whack_build.sh" clean
+# set up our output directories etc.
+prepare_clam_binaries_dir
+
# make this again so no one gets cranky.
mkdir -p "$FEISTY_MEOW_LOGS"