builds still don't work right or possibly at all.
* Please send any updates to: fred@gruntose.com *
\*****************************************************************************/
+#include "console_logger.h"
#include "program_wide_logger.h"
using namespace basis;
namespace loggers {
-standard_log_base *program_wide_logger::c_the_wide_log = new null_logger;
+standard_log_base *program_wide_logger::c_the_wide_log = new console_logger();
standard_log_base &program_wide_logger::get() { return *c_the_wide_log; }
// static dependencies found by buildor_gen_deps.sh:
#include <application/application_shell.cpp>
#include <application/command_line.cpp>
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
#include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
#include <basis/utf_conversion.cpp>
#include <configuration/application_configuration.cpp>
#ifdef __BUILD_STATIC_APPLICATION__
// static dependencies found by buildor_gen_deps.sh:
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
#include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
#include <basis/utf_conversion.cpp>
+ #include <configuration/application_configuration.cpp>
+ #include <configuration/configurator.cpp>
+ #include <configuration/ini_configurator.cpp>
+ #include <configuration/ini_parser.cpp>
+ #include <configuration/table_configurator.cpp>
+ #include <configuration/variable_tokenizer.cpp>
+ #include <filesystem/byte_filer.cpp>
+ #include <filesystem/directory.cpp>
+ #include <filesystem/filename.cpp>
#include <loggers/console_logger.cpp>
+ #include <loggers/program_wide_logger.cpp>
+ #include <structures/checksums.cpp>
#include <structures/object_packers.cpp>
#include <structures/static_memory_gremlin.cpp>
+ #include <structures/string_hasher.cpp>
+ #include <structures/string_table.cpp>
+ #include <structures/version_record.cpp>
#include <textual/parser_bits.cpp>
+ #include <timely/earth_time.cpp>
+ #include <timely/time_stamp.cpp>
#endif // __BUILD_STATIC_APPLICATION__
#ifdef __BUILD_STATIC_APPLICATION__
// static dependencies found by buildor_gen_deps.sh:
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
+ #include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
+ #include <basis/utf_conversion.cpp>
+ #include <configuration/application_configuration.cpp>
+ #include <configuration/configurator.cpp>
+ #include <configuration/ini_configurator.cpp>
+ #include <configuration/ini_parser.cpp>
+ #include <configuration/table_configurator.cpp>
+ #include <configuration/variable_tokenizer.cpp>
+ #include <filesystem/byte_filer.cpp>
+ #include <filesystem/directory.cpp>
+ #include <filesystem/filename.cpp>
+ #include <loggers/console_logger.cpp>
+ #include <loggers/program_wide_logger.cpp>
+ #include <structures/checksums.cpp>
+ #include <structures/object_packers.cpp>
#include <structures/static_memory_gremlin.cpp>
+ #include <structures/string_hasher.cpp>
+ #include <structures/string_table.cpp>
+ #include <structures/version_record.cpp>
+ #include <textual/parser_bits.cpp>
+ #include <timely/earth_time.cpp>
+ #include <timely/time_stamp.cpp>
#endif // __BUILD_STATIC_APPLICATION__
#ifdef __BUILD_STATIC_APPLICATION__
// static dependencies found by buildor_gen_deps.sh:
#include <application/command_line.cpp>
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
#include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
#include <basis/utf_conversion.cpp>
#include <configuration/application_configuration.cpp>
#include <filesystem/byte_filer.cpp>
#include <filesystem/directory.cpp>
#include <filesystem/filename.cpp>
+ #include <loggers/console_logger.cpp>
#include <loggers/program_wide_logger.cpp>
#include <structures/checksums.cpp>
#include <structures/object_packers.cpp>
// static dependencies found by buildor_gen_deps.sh:
#include <application/application_shell.cpp>
#include <application/command_line.cpp>
+ #include <application/windoze_helper.cpp>
#include <basis/astring.cpp>
#include <basis/common_outcomes.cpp>
#include <basis/environment.cpp>
+ #include <basis/guards.cpp>
#include <basis/mutex.cpp>
#include <basis/utf_conversion.cpp>
#include <configuration/application_configuration.cpp>
&backup_hierarchy($snarf_file_base, $number, $root, "webby");
# grab the production assets.
-&backup_files($snarf_file_base, $number, $root, "production", ("*.ini", "make*"));
+&backup_files($snarf_file_base, $number, $root, "production", ("*.ini", "make*", ".gitignore"));
+&backup_hierarchy($snarf_file_base, $number, "$root", "production/3rdparty");
+&backup_hierarchy($snarf_file_base, $number, "$root", "production/assign_bases");
+&backup_hierarchy($snarf_file_base, $number, "$root", "production/check_versions");
&backup_hierarchy($snarf_file_base, $number, "$root", "production/setup_src");
+&backup_hierarchy($snarf_file_base, $number, "$root", "production/win32_helper");
# now rename the file so only the unpacker can access it.
&rename_archive($snarf_file);
+++ /dev/null
-#!/bin/bash
-
-export PATH=/bin:/cygdrive/c/utilities/firefox:$PATH
-
-bash
-
-
# set up the feisty_meow dir.
pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null
source "$CORE_SCRIPTS_DIR/functions.sh"
-export FEISTY_MEOW_DIR="$(pwd)"
+
+###unset SERIOUS_SLASH_TREATMENT
+export FEISTY_MEOW_DIR="$(unix_to_dos_path $(\pwd) )"
popd &>/dev/null
export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"
echo "export $i=${!i}" >>"$GENERATED_FEISTY_MEOW_VARIABLES"
done
-# load our variables so we get a useful PERLLIB variable.
+# load our variables so we can run our perl scripts successfully.
source "$FEISTY_MEOW_SCRIPTS/core/variables.sh"
# create our common aliases.
# variables for perl.
- export PERLLIB
- if [ "$OS" != "Windows_NT" ]; then
- PERLLIB+="/usr/lib/perl5"
- else
+ export PERLLIB+="/usr/lib/perl5"
+ if [ "$OS" == "Windows_NT" ]; then
export PERLIO=:perlio
# choose perl's IO over the ms-windows version so we can handle file
# bytes properly.
# check if there is a perl file present; add the folder to PERLLIB if so.
ls $i/*.pl &>/dev/null
if [ $? -eq 0 ]; then
- PERLLIB+=":$i"
+ PERLLIB+=":$(dos_to_unix_path $i)"
fi
fi
done
# up the path to it here based on the operating system.
export BINDIR=$FEISTY_MEOW_DIR/production/binaries
# add binaries created within build to the path.
- export PATH="$BINDIR:$PATH"
+ export PATH="$(dos_to_unix_path $BINDIR):$PATH"
# Shared libraries are located via this variable.
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$BINDIR"
+ export LD_LIBRARY_PATH="$(dos_to_unix_path $LD_LIBRARY_PATH):$(dos_to_unix_path $BINDIR)"
fi
}
# add to the PATH variables used for locating applications. this step is taken after any
# potential overrides from the user.
- export PATH="$FEISTY_MEOW_GENERATED:$PATH:$(find /usr/local/games -maxdepth 1 -type d -exec echo -n {}: ';' 2>/dev/null)/sbin"
+ export PATH="$(dos_to_unix_path $FEISTY_MEOW_GENERATED):$PATH:$(find /usr/local/games -maxdepth 1 -type d -exec echo -n {}: ';' 2>/dev/null)/sbin"
##############
echo "[FEISTY_MEOW_DIR is $FEISTY_MEOW_DIR]"
fi
-if [ "$OPERATING_SYSTEM" == "WIN32" ]; then
- # harsh on the paths and make them use backwards slashes.
- export SERIOUS_SLASH_TREATMENT=true
-fi
+#if [ "$OPERATING_SYSTEM" == "WIN32" ]; then
+# # harsh on the paths and make them use backwards slashes.
+# export SERIOUS_SLASH_TREATMENT=true
+#fi
# new BUILD_TOP variable points at the utter top-most level of any files
# in the building hierarchy.
# we should have established our internal variables now, so let's try
# using them.
- export PATH=$BINARY_DIR:$PATH
+ export PATH=$(dos_to_unix_path $BINARY_DIR):$PATH
# load up the helper variables for visual studio on winders.
if [ "$OPERATING_SYSTEM" == "WIN32" ]; then
function setup_visual_studio_variables()
{
chmod 755 $PRODUCTION_DIR/win32_helper/*.exe
- export PATH=$PRODUCTION_DIR/win32_helper:$PATH
+ export PATH="$(dos_to_unix_path $PRODUCTION_DIR)/win32_helper:$PATH"
# we try to use the most recent compiler location, and work backwards as
# needed for the supported range (10 = vs 2010, 9 = vs 2008, 8 = vs 2005).
export VIS_STU_ROOT="$(echo $VSxTOOLS | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' | sed -e 's/^\(.\):/\/\1/' )"
export VSINSTALLDIR="$VIS_STU_ROOT"
- export WINDIR="$(short_path "$WINDIR" | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )"
+ export WINDIR="$(short_path "$WINDIR" | tr A-Z a-z | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )"
export VCINSTALLDIR="$VSINSTALLDIR/VC"
export VSCOMMONROOT="$VSINSTALLDIR/Common7"
export WindowsSdkDir="$PLATFORM_DIR"
#echo "path before is $PATH"
- export PATH="$DevEnvDir:$VCINSTALLDIR/BIN:$VSxTOOLS:$VSxTOOLS/bin:$FrameworkDir/$FrameworkVersion:$FrameworkDir/v3.5:$VCINSTALLDIR/VCPackages:$VSINSTALLDIR/Common7/Tools:$PLATFORM_DIR/bin:$PATH"
+ local filena
+ for filena in "$DevEnvDir" "$VCINSTALLDIR/BIN" "$VSxTOOLS" "$VSxTOOLS/bin" "$FrameworkDir/$FrameworkVersion" "$FrameworkDir/v3.5" "$VCINSTALLDIR/VCPackages" "$VSINSTALLDIR/Common7/Tools" "$PLATFORM_DIR/bin"; do
+ export PATH="$PATH:$(dos_to_unix_path $filena)"
+ done
#echo "path after is $PATH"
export INCLUDE="$VCINSTALLDIR/ATLMFC/INCLUDE:$VCINSTALLDIR/INCLUDE:$PLATFORM_DIR/include"
function dossify_and_run_commands()
{
+
+
+eval "${@}"
+return $?
+
+
+#all primordial gunk. try above first.
# we only mess with the command line on windows...
if [ "$OS" != "Windows_NT" ]; then
# for non windows, just run the commands straight up.