strncat(newprefix, fname + 11, oldlen - 11 + 1); // one extra for null char.
return newprefix; // mem leak here; cannot be helped for quick fix using functional style.
} else if ( (fname[0] == '-') && (oldlen > 12)
- && (!strncmp(fname + 2, "/cygdrive/", 10) ) {
+ && (!strncmp(fname + 2, "/cygdrive/", 10)) ) {
// in the second case we are looking for command line options. this code handles a parameter
// that starts with a single dash and has a single flag character after that.
char *newprefix = (char *)malloc(oldlen);
}
+/*
+
function dossify_and_run_commands()
{
- declare -a darc_commands=()
+
+ declare -a darc_commands=()
for i in "$@"; do
- # we only mess with the command line on windows.
+ // we only mess with the command line on windows.
if [ "$OS" == "Windows_NT" ]; then
if [[ "$i" =~ ^-[a-zA-z][/\"].* ]]; then
#echo matched on our pattern for parameters
fi
done
+}
+*/
int main(int argc, char *argv[])
{
# translate to dos format if there's a cygdrive in there; otherwise microsoft's tools
# will hose up completely due to unknown paths.
-export FEISTY_MEOW_DIR="$(unix_to_dos $FEISTY_MEOW_DIR)"
+export FEISTY_MEOW_DIR="$(unix_to_dos_path $FEISTY_MEOW_DIR)"
# load in build variables based on our deduced paths.
source "$BUILD_SCRIPTS_DIR/build_variables.sh" "$BUILD_SCRIPTS_DIR/build_variables.sh"