many changes: removed antiquated domain names from the code and docs, removed all variables that were in use which ended in the hated "_DIR" ending.
# The cloud directory is our new repository that's always available. It serves as our
# personal cloud for data.
- export CLOUD_DIR=$HOME/cloud
+ export CLOUD_BASE=$HOME/cloud
# The gruntose web site is expected to reside below, if it exists at all.
- export WEB_DIR=$HOME/web
+ export WEBBED_SITES=$HOME/web
if [ "$(hostname)" = "zooty.koeritz.com" ]; then
- export WEB_DIR=/var/www
+ export WEBBED_SITES=/var/www
fi
# add a bunch of folders to the list for checkin & checkout. these are
<small> </small><big> </big><small> </small>
<ol>
<small> </small><big> </big><small> </small>
+
+<big>DEPRECATED</big>
<li><big> **REVISE** out of date... This variable has been needed
since clam became
- part of the YETIcode project (at <a href="http://yeticode.org/">http://yeticode.org</a>).</big></li>
+ part of the YETIcode project (at <a href="http://feistymeow.org/">http://feistymeow.org</a>).</big></li>
<small> </small>
<li><big>The default location for clam is under the FEISTY_MEOW_SCRIPTS directory in a
folder named clam.<br>
<small> </small><big> </big><small> </small>
<ol>
<small> </small><big> </big><small> </small>
- <li><big>The hoople/bin directory in the archive has
+ <li><big>The CLAM_BINARIES directory in the archive has
pre-built
versions of tools used by clam during a build.<br>
</big></li>
<small> </small><big> </big><small> </small>
<li><big>The standard source code repository is a directory
called
- "hoople"
- in the user's home directory. If you decompress the hoople
+ "feisty_meow"
+ in the user's home directory. If you decompress the feisty_meow
library archive in your home directory, you should be all set to
perform a build.</big></li>
<small> </small><big> </big><small> </small>
- <li><big>See the HOOPLE website for more details about
+ <li><big>See the Feisty Meow Concerns Ltdwebsite for more details about
downloading that codebase (<a href="http://feistymeow.org">http://feistymeow.org</a>).<br>
</big></li>
<small> </small><big> </big><small> </small>
<h3><big><a name="TUT_IMPORTANT_VARS"></a>Important Variables</big></h3>
<big>
The clam root directory is pointed to by an internal variable called
- "CLAM_DIR",
+ "CLAM_SCRIPTS",
defined in $/variables.def. This variable is used by the clam
system
to find extra files that might be needed by derived makefile
support.
It is important to change this to the appropriate value when you are
- using the system in a different location. The CLAM_DIR variable
+ using the system in a different location. The CLAM_SCRIPTS variable
can either
be directly edited in $/variables.def, or it can be overridden in the
environment
are
generated. All files generated by compilation are stored in the
repository
- directory (by default, either "~/hoople" in Linux or "l:\" in
+ directory (by default, either "~/feisty_meow" in Linux or "l:\" in
win32). There are three TYPEs supported so far: </big></p>
<ul>
<small> </small><big> </big><small> </small>
programs.</big></li>
<small> </small><small></small>
</ul>
- <big> Projects of the "library" type will
+
+<big>DEPRECATED</big>
+ <big>
+
+ Projects of the "library" type will
be given
an include directory named after the project, such as
- "~/hoople/include/basis".
+
+ "~/feisty_meow/include/basis".
The include directory is created as a copy of the headers in the
project's
directory . Library projects will also have their final products
Projects that are of type "application" will
have their executables
copied to the executable directory in the repository (such as
- "~/hoople/exe").<br>
+ "~/hoople/exe").
+
+<br>
The "test" type of project
will be promoted to a subdirectory named after the PROJECT that resides
under the test hierarchy in the repository (such as
"~/hoople/tests/turbodog").
</big>
+
+<big>DEPRECATED</big>
<p><big> SOURCE is a list of files that
are to be
compiled
<blockquote><big>MIDL is also a provided macro; it executes the
Microsoft
IDL compiler. </big></blockquote>
- <big>$(HIDESH) $(CLAM_DIR)/postconditions.sh<br>
+ <big>$(HIDESH) $(CLAM_SCRIPTS)/postconditions.sh<br>
</big>
<blockquote><big>This runs a shell script that handles the end
portion of a
but this will trap errors it sees and play the build error
CLAM_ERROR_SOUND.<br>
</big>
- <h4><big>CLAM_BINARY_DIR</big></h4>
+ <h4><big>CLAM_BINARIES</big></h4>
<big> This is a folder where the helper
binaries for the CLAM makefile system are located. <br>
</big>
- <h4><big>CLAM_DIR</big></h4>
+ <h4><big>CLAM_SCRIPTS</big></h4>
<big> This variable points at the location
where the definitions and helper scripts are located. The
default is
repository
is also where source code and final products of compilation reside,
unless
- the default is over-ridden (see TARGETS_DIR).<br>
+ the default is over-ridden (see TARGETS_STORE).<br>
</big>
<h4><big>SH & SHELL</big></h4>
<big> These variables both point at a
Instead,
a generated variable called ACTUAL_TARGETS is used.<br>
</big>
- <h4><big>TARGETS_DIR</big></h4>
+ <h4><big>TARGETS_STORE</big></h4>
<big> This folder is where all generated
files are
to
for C++ header files (files ending in ?.h?).
</big>
<h4><big>HOOPLE_HEADERS</big></h4>
+<big>DEPRECATED</big>
<big> The two standard places to look for
headers
(the repository and the third party directory) are listed in this
variable.
</big>
<h4><big>HOOPLE_LIBRARIES</big></h4>
+<big>DEPRECATED</big>
<big> This is where our libraries are
located. It is usually a subdirectory called "lib" under the
repository
<big> The most frequent cause of this
problem is a
directory
- not being on your path. The compilation tools bin (~/hoople/bin)
+ not being on your path. The compilation tools bin (CLAM_BINARIES)
directory must be in
the PATH variable.
<br>
$(FEISTY_MEOW_APEX)/octopi \
$(FEISTY_MEOW_APEX)/graphiq \
$(FEISTY_MEOW_APEX)/kona/src \
- $(PRODUCTION_DIR)/setup_src
+ $(PRODUCTION_STORE)/setup_src
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `html' will be used as the default path.
-HTML_OUTPUT = $(PRODUCTION_DIR)/code_guide
+HTML_OUTPUT = $(PRODUCTION_STORE)/code_guide
# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
formatted link and categories from the input file. Another tag of $TODAYS_DATE\n\
will be replaced with the date when the output file is regenerated.\n\
The HOOPLE link format is documented here:\n\
- http://hoople.org/guides/link_database/format_manifesto.txt\n\
+ http://feistymeow.org/guides/link_database/format_manifesto.txt\n\
", program_name.basename().raw().s(), program_name.basename().raw().s());
program_wide_logger::get().log(to_show, ALWAYS_PRINT);
return 12;
link categories (which support hierarchies) or actual links (i.e., URLs of\n\
interest). The links are written to a CSV file in the standard HOOPLE link\n\
The HOOPLE link format is documented here:\n\
- http://hoople.org/guides/link_database/format_manifesto.txt\n\
+ http://feistymeow.org/guides/link_database/format_manifesto.txt\n\
", program_name.basename().raw().s(), program_name.basename().raw().s());
program_wide_logger::get().log(to_show, ALWAYS_PRINT);
return 12;
threads that will simultaneously check on links.\n\
The input file is expected to be in the HOOPLE link database format.\n\
The HOOPLE link format is documented here:\n\
- http://hoople.org/guides/link_database/format_manifesto.txt\n\
+ http://feistymeow.org/guides/link_database/format_manifesto.txt\n\
", program_name.basename().raw().s(), program_name.basename().raw().s());
program_wide_logger::get().log(to_show, ALWAYS_PRINT);
return 12;
or \"mozilla\" bookmarks style to specify the style of the output file\n\
generated.\n\
The HOOPLE link format is documented here:\n\
- http://hoople.org/guides/link_database/format_manifesto.txt\n\
+ http://feistymeow.org/guides/link_database/format_manifesto.txt\n\
", program_name.basename().raw().s(), program_name.basename().raw().s());
program_wide_logger::get().log(to_show, ALWAYS_PRINT);
return 12;
link database format. The -o flag specifies the new bookmarks file to be\n\
created, which will also be in the HOOPLE link format.\n\
The HOOPLE link format is documented here:\n\
- http://hoople.org/guides/link_database/format_manifesto.txt\n\
+ http://feistymeow.org/guides/link_database/format_manifesto.txt\n\
", program_name.basename().raw().s(), program_name.basename().raw().s());
program_wide_logger::get().log(to_show, ALWAYS_PRINT);
return 12;
#ifdef __WIN32__
astring stub_filename("unpacker_stub.exe");
#endif
- astring repo_dir = "$RUNTIME_DIR";
+ astring repo_dir = "$RUNTIME_PATH";
astring stub_file = parser_bits::substitute_env_vars
(repo_dir + "/binaries/" + stub_filename, false);
if (!filename(stub_file).exists()) {
LOG("reading tree to recreate");
directory_tree dir(path, pattern.s());
ASSERT_TRUE(dir.good(), "makedirs test directory reading");
- filename tmpdir(environment::get("GENERATED_DIR") + "/zz_balfazzaral");
+ filename tmpdir(environment::get("GENERATED_STORE") + "/zz_balfazzaral");
LOG(astring("will write to tmp in ") + tmpdir);
basis::outcome result = dir.make_directories(tmpdir.raw());
ASSERT_EQUAL(result.value(), common::OKAY, "makedirs should succeed");
void unit_base::write_cppunit_xml()
{
auto_synchronizer synch(c_lock);
- astring logs_dir = environment::get("LOGS_DIR");
+ astring logs_dir = environment::get("FEISTY_MEOW_LOGS");
if (logs_dir == astring::empty_string()) logs_dir = "logs"; // uhhh.
astring outfile = logs_dir + "/"
+ filename(application_configuration::application_name()).basename().raw()
ifeq "$(FEISTY_MEOW_APEX)" ""
export FEISTY_MEOW_APEX := $(CURRENT_DIR)
endif
-#ifeq "$(PRODUCTION_DIR)" ""
-# export PRODUCTION_DIR = $(FEISTY_MEOW_APEX)/production
+#ifeq "$(PRODUCTION_STORE)" ""
+# export PRODUCTION_STORE = $(FEISTY_MEOW_APEX)/production
#endif
-ifeq "$(CLAM_DIR)" ""
- export CLAM_DIR = $(FEISTY_MEOW_SCRIPTS)/clam
+ifeq "$(CLAM_SCRIPTS)" ""
+ export CLAM_SCRIPTS = $(FEISTY_MEOW_SCRIPTS)/clam
endif
-include $(CLAM_DIR)/cpp/variables.def
+include $(CLAM_SCRIPTS)/cpp/variables.def
PROJECT = feisty_meow_nucleus
TYPE = hierarchy
FIRST_TARGETS += do_make
BUILD_AFTER = library applications tools
-include $(CLAM_DIR)/cpp/rules.def
+include $(CLAM_SCRIPTS)/cpp/rules.def
-do_make: start_make $(RUNTIME_DIR)/binaries/manifest.txt end_make
+do_make: start_make $(RUNTIME_PATH)/binaries/manifest.txt end_make
start_make: show_date.start
end_make: show_date.end
-$(RUNTIME_DIR)/binaries/manifest.txt: $(PARAMETER_FILE)
+$(RUNTIME_PATH)/binaries/manifest.txt: $(PARAMETER_FILE)
$(HIDESH) -c '\
if [ ! -d "$(EXECUTABLE_DIR)" ]; then mkdir -p "$(EXECUTABLE_DIR)"; fi; \
if [ $$? -ne 0 ]; then \
echo build failure while creating executable directory.; \
exit 1; \
fi; \
-cp -f "$(PRODUCTION_DIR)/paths.ini" "$(EXECUTABLE_DIR)"; \
+cp -f "$(PRODUCTION_STORE)/paths.ini" "$(EXECUTABLE_DIR)"; \
if [ $$? -ne 0 ]; then \
echo build failure while copying paths initialization file.; \
exit 1; \
fi; \
-bash $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(CLAM_BINARY_DIR)/value_tagger$(EXE_END) $(PRODUCTION_DIR)/codescan.ini; \
+bash $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(CLAM_BINARIES)/value_tagger$(EXE_END) $(PRODUCTION_STORE)/codescan.ini; \
if [ $$? -ne 0 ]; then \
echo build failure during value tagging.; \
exit 1; \
fi; \
-bash $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(CLAM_BINARY_DIR)/write_build_config$(EXE_END); \
+bash $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(CLAM_BINARIES)/write_build_config$(EXE_END); \
if [ $$? -ne 0 ]; then \
echo build failure while writing config.; \
exit 1; \
#!/bin/sh
-bash $PRODUCTION_DIR/assign_bases/whack_odd_dlls.sh
+bash $PRODUCTION_STORE/assign_bases/whack_odd_dlls.sh
"$VS80COMNTOOLS/Bin"/rebase.exe -b 0x68000000 -d $DYNAMIC_LIBRARY_DIR/*.dll
#!/bin/bash
-DA_DIR="$RUNTIME_DIR/binaries"
+DA_DIR="$RUNTIME_PATH/binaries"
rm -f $DA_DIR/AxInterop.*.dll \
$DA_DIR/DevAge*dll \
[Common]
-LogPath=$GENERATED_DIR/logs
+LogPath=$GENERATED_STORE/logs
#!/bin/bash
-if [ ! -d $RUNTIME_DIR/install ]; then mkdir $RUNTIME_DIR/install; fi
+if [ ! -d $RUNTIME_PATH/install ]; then mkdir $RUNTIME_PATH/install; fi
echo exe ending is $EXE_END
-rm -f $RUNTIME_DIR/install/example_bundle$EXE_END
+rm -f $RUNTIME_PATH/install/example_bundle$EXE_END
-$EXECUTABLE_DIR/bundle_creator -o $RUNTIME_DIR/install/example_bundle$EXE_END -m ./example_manifest.txt
+$EXECUTABLE_DIR/bundle_creator -o $RUNTIME_PATH/install/example_bundle$EXE_END -m ./example_manifest.txt
; operating systems and is blank for others (so far).
[using_vars]
-source=$CLAM_BINARY_DIR/value_tagger$EXE_END
+source=$CLAM_BINARIES/value_tagger$EXE_END
target=$TMP/using_varsilator$EXE_END
; variables in the source get resolved at packing time.
; variables in the target get resolved during unbundling time.
; an executable program from stopping the unbundling process.
[no_replacement]
-source=$PRODUCTION_DIR/feisty_meow_config.ini
+source=$PRODUCTION_STORE/feisty_meow_config.ini
target=$TARGET/buildonia.ini
no_replace=true
; this shows how the "no_replace" macro will avoid overwriting a file if it
; should be that your changes are kept.
[install_but_backup]
-source=$PRODUCTION_DIR/feisty_meow_config.ini
+source=$PRODUCTION_STORE/feisty_meow_config.ini
target=$TARGET/build_file_uhh
make_backup=t
; this simple example shows the backing up of a file before the packed
PROJECT = example_bundle
TYPE = hierarchy
FIRST_TARGETS += build_bundle
-CLEANUPS += $(RUNTIME_DIR)/install/example_bundle$(EXE_END)
+CLEANUPS += $(RUNTIME_PATH)/install/example_bundle$(EXE_END)
# set the unix bin variable so the bundle finds the apps.
export UNIX_BIN = /bin
version=$1
-INSTDIR=$RUNTIME_DIR/install
+INSTDIR=$RUNTIME_PATH/install
if [ ! -d "$INSTDIR" ]; then mkdir "$INSTDIR"; fi
# the new packages are named after the build version.
echo
echo Creating source package in `basename $source_pack`
-$RUNTIME_DIR/binaries/bundle_creator -o $source_pack -m ./whole_build_manifest.txt --keyword sources
+$RUNTIME_PATH/binaries/bundle_creator -o $source_pack -m ./whole_build_manifest.txt --keyword sources
echo
echo Creating full build package in `basename $total_build`
-$RUNTIME_DIR/binaries/bundle_creator -o $total_build -m ./whole_build_manifest.txt
+$RUNTIME_PATH/binaries/bundle_creator -o $total_build -m ./whole_build_manifest.txt
PROJECT = Whole_Build_Pack
FIRST_TARGETS += create_package
-CLEANUPS += $(RUNTIME_DIR)/install/whole_build* $(RUNTIME_DIR)/install/sources_*
+CLEANUPS += $(RUNTIME_PATH)/install/whole_build* $(RUNTIME_PATH)/install/sources_*
TYPE = hierarchy
export TARGET=/tmp/zz_wholebuild_$(USER)
; this section is included in both types of package.
[production_inis]
-source=$PRODUCTION_DIR/*.ini
+source=$PRODUCTION_STORE/*.ini
target=$TARGET/production
keyword=sources
keyword=sources
[production_makefile]
-source=$PRODUCTION_DIR/makefile
+source=$PRODUCTION_STORE/makefile
target=$TARGET/production/makefile
keyword=sources
keyword=sources
[assign_bases]
-source=$PRODUCTION_DIR/assign_bases
+source=$PRODUCTION_STORE/assign_bases
target=$TARGET/production/assign_bases
recurse=1
keyword=sources
[check_versions]
-source=$PRODUCTION_DIR/check_versions
+source=$PRODUCTION_STORE/check_versions
target=$TARGET/production/check_versions
recurse=1
keyword=sources
[setup_src]
-source=$PRODUCTION_DIR/setup_src
+source=$PRODUCTION_STORE/setup_src
target=$TARGET/production/setup_src
recurse=1
keyword=sources
; this section is only included in the full package (not in sources).
[3rdparty]
-source=$PRODUCTION_DIR/3rdparty
+source=$PRODUCTION_STORE/3rdparty
target=$TARGET/production/3rdparty
recurse=1
[binaries]
-source=$RUNTIME_DIR/binaries
+source=$RUNTIME_PATH/binaries
target=$TARGET/runtime/binaries
recurse=1
[clam_bin]
-source=$RUNTIME_DIR/clam_bin
+source=$RUNTIME_PATH/clam_bin
target=$TARGET/runtime/clam_bin
recurse=1
[packages]
-source=$RUNTIME_DIR/packages
+source=$RUNTIME_PATH/packages
target=$TARGET/runtime/packages
recurse=1
# now move the newest version into its resting place. this prepares the
# feisty_meow package for uploading.
-mv -v $TEMPO_FILE $WEB_DIR/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
+mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
popd
#!/bin/bash
# this script rebuilds the bookmarks files. it requires the variables:
-# WEB_DIR: points at the root of the web hierarchy.
+# WEBBED_SITES: points at the root of the web hierarchy.
-export GRUNTOSE_DIR=$WEB_DIR/gruntose.com
+export GRUNTOSE_DIR=$WEBBED_SITES/gruntose.com
rootname=$HOME/generated
suffix=.html
if [ -f $genlinx_js ]; then rm $genlinx_js; fi
if [ -f $genlinx_moz ]; then rm $genlinx_moz; fi
-$RUNTIME_DIR/binaries/marks_sorter -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -o $newmarx
+$RUNTIME_PATH/binaries/marks_sorter -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -o $newmarx
if [ $? != 0 ]; then
echo error during sorting of the bookmarks.
exit 1
fi
-$RUNTIME_DIR/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx -s human
+$RUNTIME_PATH/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx -s human
if [ $? != 0 ]; then
echo error during creation of the normal web page of bookmarks.
exit 1
fi
-$RUNTIME_DIR/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx_moz -s mozilla
+$RUNTIME_PATH/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx_moz -s mozilla
if [ $? != 0 ]; then
echo error during creation of the mozilla format page of bookmarks.
exit 1
fi
-$RUNTIME_DIR/binaries/js_marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/js_template.html -o $genlinx_js
+$RUNTIME_PATH/binaries/js_marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/js_template.html -o $genlinx_js
if [ $? != 0 ]; then
echo error during creation of the javascript bookmark page.
exit 1
echo " command was: $*"
echo
echo "======================="
-source $CLAM_DIR/exit_make.sh
+source $CLAM_SCRIPTS/exit_make.sh
exit $ERR
if [ -f "$smoot87/makefile" ]; then
#echo -e "\n\n[[inside barriers, with filename=$burlap51 and all conditions met]]\n\n"
pushd "$smoot87" &>/dev/null
- make --silent -I "$CLAM_DIR" NOT_FIRST_MAKE=t clean
+ make --silent -I "$CLAM_SCRIPTS" NOT_FIRST_MAKE=t clean
popd &>/dev/null
else
echo "(skipping directory $smoot87)"
##########################################################################
- local current_includes="$(mktemp $TEMPORARIES_DIR/zz_buildor_deps4-$base.XXXXXX)"
+ local current_includes="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps4-$base.XXXXXX)"
rm -f "$current_includes"
- local partial_file="$(mktemp $TEMPORARIES_DIR/zz_buildor_deps5-$base.XXXXXX)"
+ local partial_file="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps5-$base.XXXXXX)"
rm -f "$partial_file"
# find all the includes in this file and save to the temp file.
#echo "would write deps to: $code_file"
#echo ${dependency_accumulator[*]}
- local replacement_file="$(mktemp $TEMPORARIES_DIR/zz_buildor_deps3.XXXXXX)"
+ local replacement_file="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps3.XXXXXX)"
# blanks is a list of blank lines that we save up in between actual content.
# if we don't hold onto them, we can have the effect of "walking" the static
echo -e "$opening_guard_line" >>"$replacement_file"
# now accumulate just the dependencies for a bit.
- local pending_deps="$(mktemp $TEMPORARIES_DIR/zz_buildor_deps2.XXXXXX)"
+ local pending_deps="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps2.XXXXXX)"
rm -f "$pending_deps"
# iterate across all the dependencies we found.
# set the directory to that absolute path.
curr_parm="$prohibited_directory"
#echo "curr_parm: $curr_parm"
- outfile="$(mktemp $TEMPORARIES_DIR/zz_buildor_deps1.XXXXXX)"
+ outfile="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps1.XXXXXX)"
find "$curr_parm" -iname "*.cpp" >"$outfile"
while read -r line_found; do
if [ $? != 0 ]; then break; fi
target=$1; shift
where=$1; shift
if [ -z "$WIN32_MANIFEST_FILE" ]; then
- WIN32_MANIFEST_FILE=$CLAM_DIR/cpp/ms_manifests/security_manifest.txt
+ WIN32_MANIFEST_FILE=$CLAM_SCRIPTS/cpp/ms_manifests/security_manifest.txt
fi
for ((count=1 ; count <= 10; count++)); do
error_val=0
if [ -f "$target.manifest" -a -f "$target" ]; then
- bash $BUILD_SCRIPTS_DIR/wrapdoze.sh mt -manifest $target.manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
+ bash $BUILD_SCRIPTS_PATH/wrapdoze.sh mt -manifest $target.manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
error_val=$?
elif [ -f "$target" ]; then
- bash $BUILD_SCRIPTS_DIR/wrapdoze.sh mt -manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
+ bash $BUILD_SCRIPTS_PATH/wrapdoze.sh mt -manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
error_val=$?
else
echo skipping manifest generation for $target.
if [ -f $FAILURE_FILE ]; then
echo Postconditions will not promote due to a failure:
cat $FAILURE_FILE
- . $CLAM_DIR/exit_make.sh
+ . $CLAM_SCRIPTS/exit_make.sh
fi
# make sure that we actually did something during the make.
for i in *.resources; do rm -f "$i"; done
# causes the shell to quit.
-DIE="source $CLAM_DIR/exit_make.sh"
+DIE="source $CLAM_SCRIPTS/exit_make.sh"
-if [ ! -d $TARGETS_DIR ]; then mkdir -p $TARGETS_DIR; fi
+if [ ! -d $TARGETS_STORE ]; then mkdir -p $TARGETS_STORE; fi
if [ "$TYPE" = "library" ]; then
else
echo "Unknown type for project [$TYPE]; cancelling postconditions!"
- source $CLAM_DIR/exit_make.sh
+ source $CLAM_SCRIPTS/exit_make.sh
fi
fi
# make sure generated files have a home.
-if [ ! -d $TARGETS_DIR ]; then mkdir -p $TARGETS_DIR; fi
+if [ ! -d $TARGETS_STORE ]; then mkdir -p $TARGETS_STORE; fi
# create the generated files storage area.
if [ ! -d $OUTPUT_ROOT ]; then mkdir -p $OUTPUT_ROOT; fi
# create the top level object directory if it doesn't exist.
# set versions on any extras that were specified in the makefile.
if [ ! -z "$EXTRA_VERSIONS" ]; then
for i in $EXTRA_VERSIONS; do
- $CLAM_BINARY_DIR/version_stamper$EXE_END $i $PARAMETER_FILE
+ $CLAM_BINARIES/version_stamper$EXE_END $i $PARAMETER_FILE
done
fi
eval "${@}"
rm -f $BUILD_LIST_FILE $BUILD_WHACK_FILE
if [ $? -ne 0 ]; then
- . "$CLAM_DIR/exit_make.sh"
+ . "$CLAM_SCRIPTS/exit_make.sh"
fi
fi
# without hosing it up.
%.nil:
ifeq "$(NO_COMPILE)" ""
- $(CATCHER)$(CC) -c $(CLAM_DIR)/cpp/blank_target.c -o $@
+ $(CATCHER)$(CC) -c $(CLAM_SCRIPTS)/cpp/blank_target.c -o $@
endif
%.bad:
@echo There is a problem with the makefile in the SOURCE variable.
@echo The offending item is: $@
- $(HIDESH)$(CLAM_DIR)/exit_make.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/exit_make.sh
## faked debug object.
#%.obj: %.cpp
# recreate dependencies for static applications.
%.gendeps: %.cpp
@echo "Generating Static Deps: $*.cpp"
- $(CATCHER)$(CLAM_DIR)/cpp/buildor_gen_deps.sh "$*.cpp"
+ $(CATCHER)$(CLAM_SCRIPTS)/cpp/buildor_gen_deps.sh "$*.cpp"
endif
############################################################################
$(HIDER)echo Building Static Library [$(notdir $@)]
@echo $@ >$(DIRTY_FILE)
ifeq "$(COMPILER)" "VISUAL_CPP"
- $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_DIR)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
+ $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_SCRIPTS)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
endif
$(CATCHER)$(LIBRARY_TOOL) $(LIBRARIAN_FLAGS) $(CREATE_LIBRARY_FLAG)$@ $(ACTUAL_OBJECTS:%=$(OBJECT_DIR)/%)
ifneq "$(OP_SYSTEM)" "UNIX"
$(HIDER)echo Building Dynamic Library [$(notdir $@)]
@echo $@ >$(DIRTY_FILE)
ifeq "$(COMPILER)" "VISUAL_CPP"
- $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_DIR)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
+ $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_SCRIPTS)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
endif
$(HIDER)rm -f $(@:%.dll=%.lib)
echo about to run link tool.
$(CATCHER)$(LINK_TOOL) $(LINKER_OUTPUT_FLAG)$@ -dll $(LOAD_FLAG_PREFIX) $(ACTUAL_OBJECTS:%=$(OBJECT_DIR)/%) $(ACTUAL_RESX_FLAGS) $(ACTUAL_LOCAL_LIBS:%=$(LIBRARY_NAME_FLAG)$(LIB_PREFIX)%$(LIB_ENDING)) $(LOAD_FLAG_SUFFIX)
echo ran link tool.
ifeq "$(COMPILER_VERSION)" "8"
- $(HIDESH)$(CLAM_DIR)/cpp/ms_manifest.sh "$@" "2"
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/ms_manifest.sh "$@" "2"
endif
ifeq "$(COMPILER_VERSION)" "10"
- $(HIDESH)$(CLAM_DIR)/cpp/ms_manifest.sh "$@" "2"
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/ms_manifest.sh "$@" "2"
endif
ifneq "$(VCPP_VISTA_ICON)" ""
$(HIDER)ReplaceVistaIcon "$@" "$(VCPP_VISTA_ICON)"
$(HIDER)echo Building Application [$(notdir $@)]
@echo $@ >$(DIRTY_FILE)
ifeq "$(COMPILER)" "VISUAL_CPP"
- $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_DIR)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
+ $(HIDESH)-c 'if [ -f $(BUILD_LIST_FILE) ]; then $(SHELL) $(CLAM_SCRIPTS)/cpp/rebuild_oldies.sh $(MULTI_BUILD_CMD); fi'
endif
$(CATCHER)$(LINK_TOOL) $(EXE_FLAGS) $(LOAD_FLAG_PREFIX) $< $(ACTUAL_OBJECTS:%=$(OBJECT_DIR)/%) $(ACTUAL_RESX_FLAGS) $(ACTUAL_LOCAL_LIBS:%=$(LIBRARY_NAME_FLAG)$(LIB_PREFIX)%$(LIB_ENDING)) $(LOAD_FLAG_SUFFIX) $(LINKER_OUTPUT_FLAG)$@
#$(^:force_rebuild=)
ifeq "$(COMPILER_VERSION)" "8"
- $(HIDESH)$(CLAM_DIR)/cpp/ms_manifest.sh "$@" "1"
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/ms_manifest.sh "$@" "1"
endif
ifeq "$(COMPILER_VERSION)" "10"
- $(HIDESH)$(CLAM_DIR)/cpp/ms_manifest.sh "$@" "1"
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/ms_manifest.sh "$@" "1"
endif
ifneq "$(VCPP_VISTA_ICON)" ""
$(HIDER)ReplaceVistaIcon "$@" "$(VCPP_VISTA_ICON)"
ifneq "$(VERSION_RC_ROOT)" ""
# only redo the version resource if it or version.ini is out of date.
%_version.rc: version.ini $(PARAMETER_FILE)
- $(CATCHER)$(CLAM_BINARY_DIR)/version_stamper$(EXE_END) . $(PARAMETER_FILE)
+ $(CATCHER)$(CLAM_BINARIES)/version_stamper$(EXE_END) . $(PARAMETER_FILE)
endif
endif
endif
endif
@echo Dependencies [$(notdir $@)]
- -$(HIDESH)$(CLAM_DIR)/cpp/preconditions.sh
+ -$(HIDESH)$(CLAM_SCRIPTS)/cpp/preconditions.sh
@touch $@
# @echo dep adds: $(DEPENDENCY_ADDITIONS)
- @$(CLAM_BINARY_DIR)/makedep$(EXE_END) $(DEPENDENCY_DEFINITIONS:%=-D%) $(DEPENDENCY_ADDITIONS) -f$@ -o.obj -p$(OBJECT_DIR)/ -w 420 $(COMPILER_HEADER_DIR:%=-X%) $(THIRD_PARTY_DIR:%=-X%) -- $(COMPILER_FLAGS) $(SOURCE) $(EXE_CPPS)
-# $(CATCHER)$(CLAM_BINARY_DIR)/makedep$(EXE_END) $(DEPENDENCY_DEFINITIONS:%=-D%) $(DEPENDENCY_ADDITIONS) -f$@ -o.obj -p$(OBJECT_DIR)/ -w 420 $(COMPILER_HEADER_DIR:%=-X%) $(THIRD_PARTY_DIR:%=-X%) -- $(COMPILER_FLAGS) $(SOURCE) $(EXE_CPPS)
+ @$(CLAM_BINARIES)/makedep$(EXE_END) $(DEPENDENCY_DEFINITIONS:%=-D%) $(DEPENDENCY_ADDITIONS) -f$@ -o.obj -p$(OBJECT_DIR)/ -w 420 $(COMPILER_HEADER_DIR:%=-X%) $(THIRD_PARTY_DIR:%=-X%) -- $(COMPILER_FLAGS) $(SOURCE) $(EXE_CPPS)
+# $(CATCHER)$(CLAM_BINARIES)/makedep$(EXE_END) $(DEPENDENCY_DEFINITIONS:%=-D%) $(DEPENDENCY_ADDITIONS) -f$@ -o.obj -p$(OBJECT_DIR)/ -w 420 $(COMPILER_HEADER_DIR:%=-X%) $(THIRD_PARTY_DIR:%=-X%) -- $(COMPILER_FLAGS) $(SOURCE) $(EXE_CPPS)
@echo $@ >$(SUBMAKE_FLAG)
endif # non-compile.
else # cleaning.
# examines the required variables and complains if they're missing.
check_requirements:
- $(HIDESH) -c 'if [ -z "$(PROJECT)" ]; then echo the PROJECT variable is not defined!; . $(CLAM_DIR)/exit_make.sh; fi'
- $(HIDESH) -c 'if [ -z "$(TYPE)" ]; then echo the TYPE variable is not defined!; . $(CLAM_DIR)/exit_make.sh; fi'
+ $(HIDESH) -c 'if [ -z "$(PROJECT)" ]; then echo the PROJECT variable is not defined!; . $(CLAM_SCRIPTS)/exit_make.sh; fi'
+ $(HIDESH) -c 'if [ -z "$(TYPE)" ]; then echo the TYPE variable is not defined!; . $(CLAM_SCRIPTS)/exit_make.sh; fi'
############################################################################
# calls the script for preparing output directories and such.
pre_compilation:
- $(HIDESH)$(CLAM_DIR)/cpp/preconditions.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/preconditions.sh
############################################################################
# we don't bother reporting errors from touch since there will sometimes
# not be any objects in the final directory.
post_compilation:
- $(HIDESH)$(CLAM_DIR)/cpp/postconditions.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/cpp/postconditions.sh
############################################################################
endif
ifeq "$(PARAMETER_FILE)" ""
# last ditch attempt to get one that will work.
- export PARAMETER_FILE = $(PRODUCTION_DIR)/feisty_meow_config.ini
+ export PARAMETER_FILE = $(PRODUCTION_STORE)/feisty_meow_config.ini
endif
###############################################################################
# endif
#endif
-#export CLAM_BINARY_DIR = $(CLAM_DIR)/../bin
+#export CLAM_BINARIES = $(CLAM_SCRIPTS)/../bin
###############################################################################
# "THIRD_PARTY_DIR" is the root of our support libraries.
export THIRD_PARTY_DIR
ifeq "$(THIRD_PARTY_DIR)" ""
- export THIRD_PARTY_DIR := "$(PRODUCTION_DIR)/3rdparty"
+ export THIRD_PARTY_DIR := "$(PRODUCTION_STORE)/3rdparty"
endif
# "OUTPUT_ROOT" is the root of all output directories for objects and other
# special case when doing arm-linux builds
ifeq "$(COMPILER)" "GNU_ARM_LINUX"
- export TARGETS_DIR = $(FEISTY_MEOW_APEX)/$(CPU_BUILD_DIR)
+ export TARGETS_STORE = $(FEISTY_MEOW_APEX)/$(CPU_BUILD_DIR)
# special output directory for firmware does not include CPU name because
# the repository already include the CPU name
BASE_OUTPUT_PATH = $(OUTPUT_ROOT)
export OBJECT_DIR = $(OUTPUT_PATH)
# These specify where files are to be created or located for our local build.
-export EXECUTABLE_DIR = $(TARGETS_DIR)
-export DYNAMIC_LIBRARY_DIR = $(TARGETS_DIR)
-export STATIC_LIBRARY_DIR = $(TARGETS_DIR)
+export EXECUTABLE_DIR = $(TARGETS_STORE)
+export DYNAMIC_LIBRARY_DIR = $(TARGETS_STORE)
+export STATIC_LIBRARY_DIR = $(TARGETS_STORE)
# "HEADER_SEARCH_PATH" is where the class interface files are to be found.
#HEADER_SEARCH_PATH =
# the root name of the version file. This is currently irrelevant on
# non-win32 platforms.
-VERSION_RC_ROOT = $(shell $(SHELL) $(CLAM_DIR)/cpp/rc_name.sh)
+VERSION_RC_ROOT = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/rc_name.sh)
ifneq "$(CONSOLE_MODE)" ""
# this definition can be used to signal different behavior when the app is
PLATFORM_ADD_IN = linux_
ARCHITECTURE = $(shell machine 2>/dev/null || arch 2>/dev/null || echo i686)
- export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
DEFINITIONS += _FILE_OFFSET_BITS=64
CC = $(COMPILER_ROOT_DIR)/bin/g++
PLATFORM_ADD_IN = linux_
- export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
SNAPGEAR_ROOT_DIR = $(HOME)/snapgear
COMPILER_ROOT_DIR = $(CYGROOT)
endif
- export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
RC := $(COMPILER_ROOT_DIR)/bin/windres
PLATFORM_ADD_IN = w32_
# calculate the visual studio root directory.
ifeq "$(VIS_STU_ROOT)" ""
- export VIS_STU_ROOT := $(shell $(SHELL) $(CLAM_DIR)/cpp/ms_root_dir.sh )
+ export VIS_STU_ROOT := $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/ms_root_dir.sh )
endif
ifneq "$(VIS_STU_ROOT)" ""
export COMPILER_ROOT_DIR = $(VIS_STU_ROOT)/VC
endif
# redo the compiler version with our new info.
- export COMPILER_VERSION := $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION := $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
# set up a directory for debugging files to be stored. these are not
# moved with the postconditions--they are generated in place.
- export PDB_DIR = $(TARGETS_DIR)
+ export PDB_DIR = $(TARGETS_STORE)
# set these way up here so we can override them later.
- CC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/cl.exe
- LINK_TOOL = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/link.exe
- LIBRARY_TOOL = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/lib
+ CC = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/cl.exe
+ LINK_TOOL = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/link.exe
+ LIBRARY_TOOL = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/lib
# This is needed to protect against the use of 64-bit time_t structure
# on windows. We are casting to time_t from a 32-bit structure.
ifeq "$(COMPILER_VERSION)" "6"
COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atl/include
COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atl/lib
- RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/../common/msdev98/bin/rc
+ RC = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/../common/msdev98/bin/rc
endif
ifeq "$(COMPILER_VERSION)" "7"
COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atlmfc/include $(COMPILER_ROOT_DIR)/platformsdk/include $(FRAMEWORK_DIR)
COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(COMPILER_ROOT_DIR)/platformsdk/lib
- RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc
+ RC = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc
COMPILER_FLAGS += -Zc:forScope
# turn on proper loop scoping.
endif
ifeq "$(COMPILER_VERSION)" "8"
COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atlmfc/include $(COMPILER_ROOT_DIR)/platformsdk/include $(FRAMEWORK_DIR)
COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(COMPILER_ROOT_DIR)/platformsdk/lib
- RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc
+ RC = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc
COMPILER_FLAGS += -Zc:forScope
# turn on proper loop scoping.
DEFINITIONS += _WIN32_WINNT=0x501
COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(PLATYPUS)/lib
DEFINITIONS += _WIN32_WINNT=0x501
DEPENDENCY_DEFINITIONS += _WIN32_WINNT=0x501
- RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(PLATYPUS)/bin/rc
+ RC = $(BUILD_SCRIPTS_PATH)/wrapdoze.sh $(PLATYPUS)/bin/rc
COMPILER_FLAGS += -Zc:forScope
# turn on proper loop scoping.
endif
ARCHITECTURE = $(shell machine 2>/dev/null || arch 2>/dev/null || echo i686)
# COMPILER_FLAGS += -fgnu-runtime
- export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
DEFINITIONS += _FILE_OFFSET_BITS=64
if [ -f $FAILURE_FILE ]; then
echo Postconditions will not promote due to a failure:
cat $FAILURE_FILE
- . $CLAM_DIR/exit_make.sh
+ . $CLAM_SCRIPTS/exit_make.sh
fi
# make sure that we actually did something during the make.
# these variables define the locations for final products. all of them
# descend from the root of the repository.
-ROOT=$TARGETS_DIR
+ROOT=$TARGETS_STORE
LIB_DIR=$ROOT/lib
DLL_DIR=$ROOT/dll
EXE_DIR=$ROOT/exe
TEST_DIR=$TEST_ROOT/$PROJECT
# causes the shell to quit.
-DIE=". $CLAM_DIR/exit_make.sh"
+DIE=". $CLAM_SCRIPTS/exit_make.sh"
if [ "$TYPE" = "library" ]; then
else
echo "Unknown type for project [$TYPE]; cancelling postconditions!"
- . $CLAM_DIR/exit_make.sh
+ . $CLAM_SCRIPTS/exit_make.sh
fi
# make sure our temp directory is there.
if [ ! -d $CLAM_TMP ]; then mkdir -p $CLAM_TMP; fi
# make sure the generated files have a home.
-if [ ! -d $TARGETS_DIR ]; then mkdir -p $TARGETS_DIR; fi
+if [ ! -d $TARGETS_STORE ]; then mkdir -p $TARGETS_STORE; fi
# create the generated files storage area.
if [ ! -d $OUTPUT_ROOT ]; then mkdir -p $OUTPUT_ROOT; fi
# create the top level object directory if it doesn't exist.
# set versions on any extras that were specified in the makefile.
if [ ! -z "$EXTRA_VERSIONS" ]; then
- for i in $EXTRA_VERSIONS; do $CLAM_BINARY_DIR/version_stamper$EXE_END $i $PARAMETER_FILE; done
+ for i in $EXTRA_VERSIONS; do $CLAM_BINARIES/version_stamper$EXE_END $i $PARAMETER_FILE; done
fi
# create all the directories that objects will go into.
# Modify the output directory for executable files if we're building a
# test project.
ifeq "$(TYPE)" "test"
- EXECUTABLE_DIR = $(TARGETS_DIR)/tests/$(PROJECT)
+ EXECUTABLE_DIR = $(TARGETS_STORE)/tests/$(PROJECT)
ifneq "$(CONSOLE_MODE)" ""
COMPILER_FLAGS += -target:exe
else
ifneq "$(VERSION_RC_ROOT)" ""
# only redo the version resource if it or version.ini is out of date.
%_version.rc: version.ini $(PARAMETER_FILE)
- $(CATCHER)$(CLAM_BINARY_DIR)/version_stamper$(EXE_END) . $(PARAMETER_FILE)
+ $(CATCHER)$(CLAM_BINARIES)/version_stamper$(EXE_END) . $(PARAMETER_FILE)
endif
endif
# examines the required variables and complains if they're missing.
check_requirements:
- $(HIDESH) -c 'if [ -z "$(PROJECT)" ]; then echo the PROJECT variable is not defined!; . $(CLAM_DIR)/exit_make.sh; fi'
- $(HIDESH) -c 'if [ -z "$(TYPE)" ]; then echo the TYPE variable is not defined!; . $(CLAM_DIR)/exit_make.sh; fi'
+ $(HIDESH) -c 'if [ -z "$(PROJECT)" ]; then echo the PROJECT variable is not defined!; . $(CLAM_SCRIPTS)/exit_make.sh; fi'
+ $(HIDESH) -c 'if [ -z "$(TYPE)" ]; then echo the TYPE variable is not defined!; . $(CLAM_SCRIPTS)/exit_make.sh; fi'
############################################################################
# calls the script for preparing output directories and such.
pre_compilation:
- $(HIDESH)$(CLAM_DIR)/csharp/preconditions.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/csharp/preconditions.sh
############################################################################
# we don't bother reporting errors from touch since there will sometimes
# not be any objects in the final directory.
post_compilation:
- $(HIDESH)$(CLAM_DIR)/csharp/postconditions.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/csharp/postconditions.sh
############################################################################
###############################################################################
-#CLAM_BINARY_DIR = $(CLAM_DIR)/../bin
+#CLAM_BINARIES = $(CLAM_SCRIPTS)/../bin
###############################################################################
# "OUTPUT_ROOT" is the root of all output directories for objects and other
# products being built.
-export OUTPUT_ROOT = $(TARGETS_DIR)/obj
+export OUTPUT_ROOT = $(TARGETS_STORE)/obj
# "PLATFORM_ADD_IN" is an option discriminator for the intended execution
# platform. it should end in an underscore if it is provided.
export OBJECT_DIR = $(OUTPUT_PATH)
# These specify where files are to be created or located for our local build.
-export EXECUTABLE_DIR = $(TARGETS_DIR)/exe
-export DYNAMIC_LIBRARY_DIR = $(TARGETS_DIR)/dll
-export STATIC_LIBRARY_DIR = $(TARGETS_DIR)/lib
-export TESTS_DIR = $(TARGETS_DIR)/tests
+export EXECUTABLE_DIR = $(TARGETS_STORE)/exe
+export DYNAMIC_LIBRARY_DIR = $(TARGETS_STORE)/dll
+export STATIC_LIBRARY_DIR = $(TARGETS_STORE)/lib
+export TESTS_DIR = $(TARGETS_STORE)/tests
# "HEADER_SEARCH_PATH" is where the class interface files are to be found.
#HEADER_SEARCH_PATH =
# the root name of the version file. This is currently irrelevant on
# non-win32 platforms.
-VERSION_RC_ROOT = $(shell $(SHELL) $(CLAM_DIR)/cpp/rc_name.sh)
+VERSION_RC_ROOT = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/rc_name.sh)
# we import the rc_name from our close ally, the c++ compiler definitions.
###############################################################################
TLBEXPORT = $(COMPILER_ROOT_DIR)/../SDK/v$(SHORT_FRAMEWORK_VERSION)/bin/tlbexp$(EXE_END)
# calculate the visual studio root directory.
- export VIS_STU_ROOT := $(shell $(SHELL) $(CLAM_DIR)/cpp/ms_root_dir.sh $(CLAM_BINARY_DIR) )
+ export VIS_STU_ROOT := $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/ms_root_dir.sh $(CLAM_BINARIES) )
ifneq "$(VIS_STU_ROOT)" ""
COMPILER_ROOT_DIR = $(VIS_STU_ROOT)/vc#
endif
HOSEUP =
endif
- export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_DIR)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
+ export COMPILER_VERSION = $(shell $(SHELL) $(CLAM_SCRIPTS)/cpp/get_version.sh $(COMPILER) $(COMPILER_ROOT_DIR) )
# set a variable for the resource compiler for old-style resources.
STANDARD_RC = $(VIS_STU_ROOT)/vc/bin/rc
# set up a directory for debugging files to be stored. these are not
# moved with the postconditions--they are generated in place.
- export PDB_DIR=$(TARGETS_DIR)/pdb
+ export PDB_DIR=$(TARGETS_STORE)/pdb
# set these way up here so we can override them later.
- CC = bash $(CLAM_DIR)/csharp/csharper.sh
+ CC = bash $(CLAM_SCRIPTS)/csharp/csharper.sh
##$(FRAMEWORK_DIR)/csc
# LINK_TOOL = $(COMPILER_ROOT_DIR)/bin/link
if [ -f "$burlap51/makefile" ]; then
#echo -e "\n\n[[inside barriers, with filename=$burlap51 and all conditions met]]\n\n"
pushd "$burlap51" &>/dev/null
- make --silent -I "$CLAM_DIR" NOT_FIRST_MAKE=t
+ make --silent -I "$CLAM_SCRIPTS" NOT_FIRST_MAKE=t
popd &>/dev/null
else
echo "(skipping directory $burlap51)"
$(HIDER)echo
$(HIDER)echo [$@] is missing files or has a makefile problem.
$(HIDER)echo
- $(HIDESH)$(CLAM_DIR)/exit_make.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/exit_make.sh
# This rule halts make for some supposedly devastating reason. More
# information should be printed out by the cause of the halt.
%.halt:
@echo CLAM execution halted, the cause being: $@
- $(HIDESH)$(CLAM_DIR)/exit_make.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/exit_make.sh
# Provides a time-stamp in the make log.
show_date.%:
# runs the programs specified in the RUN_TARGETS variable.
run_targets:
- $(HIDESH)"$(CLAM_DIR)/target_runner.sh"
+ $(HIDESH)"$(CLAM_SCRIPTS)/target_runner.sh"
# "make_subdirs" travels down each subdirectory and builds using make.
make_subdirs:
- $(HIDESH)$(CLAM_DIR)/make_subdirs.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/make_subdirs.sh
# "clean" is a default target that removes object files, libs, executable
# files and such that were created by the project. it invokes the makefile
# "clean_subdirs" travels down each subdirectory and cleans using make.
clean_subdirs:
- $(HIDESH)$(CLAM_DIR)/clean_subdirs.sh
+ $(HIDESH)$(CLAM_SCRIPTS)/clean_subdirs.sh
# "rm_links" removes the files in the current directory that are links
# to other files. this is only useful in a unix environment.
# "FEISTY_MEOW_APEX" is the root of the "build" for our compilation oriented
# features. All source code and build helper files are usually found there.
# The build targets to be built are usually stored there also, although the
-# targets can be located elsewhere if desired. see TARGETS_DIR below.
+# targets can be located elsewhere if desired. see TARGETS_STORE below.
export FEISTY_MEOW_APEX
ifeq "$(FEISTY_MEOW_APEX)" ""
# FEISTY_MEOW_APEX =
export FEISTY_MEOW_SCRIPTS := $(FEISTY_MEOW_APEX)/scripts
endif
-# "PRODUCTION_DIR" is where components required for building the code or
+# "PRODUCTION_STORE" is where components required for building the code or
# installers can be found.
#hmmm: is this redundant?
-export PRODUCTION_DIR
-ifeq "$(PRODUCTION_DIR)" ""
- PRODUCTION_DIR=$(FEISTY_MEOW_APEX)/production
+export PRODUCTION_STORE
+ifeq "$(PRODUCTION_STORE)" ""
+ PRODUCTION_STORE=$(FEISTY_MEOW_APEX)/production
endif
-# "CLAM_DIR" points at where the CLAM source files are located. this is needed
+# "CLAM_SCRIPTS" points at where the CLAM source files are located. this is needed
# for finding shell scripts used during compilation. if you are not using the
# standard CLAM location, then modify this appropriately.
-export CLAM_DIR
-ifeq "$(CLAM_DIR)" ""
- export CLAM_DIR := $(FEISTY_MEOW_SCRIPTS)/clam
+export CLAM_SCRIPTS
+ifeq "$(CLAM_SCRIPTS)" ""
+ export CLAM_SCRIPTS := $(FEISTY_MEOW_SCRIPTS)/clam
endif
-# "TARGETS_DIR" is where all generated files will end up. Usually the
+# "TARGETS_STORE" is where all generated files will end up. Usually the
# files are put in a subdirectory named after their file type, such as
-# "include". These subdirectories will all live under the TARGETS_DIR.
-export TARGETS_DIR
-ifeq "$(TARGETS_DIR)" ""
+# "include". These subdirectories will all live under the TARGETS_STORE.
+export TARGETS_STORE
+ifeq "$(TARGETS_STORE)" ""
# the default is to generate files into subdirectories that are at the
# top-level of the repository.
- TARGETS_DIR = $(FEISTY_MEOW_APEX)
+ TARGETS_STORE = $(FEISTY_MEOW_APEX)
endif
# "CURRENT_DIR" is the directory where this make was started.
# also contains any extra flags passed to the compilation.
ifeq "$(PARAMETER_FILE)" ""
# the default assumes that clam lives under the main hoople branch.
- export PARAMETER_FILE = $(CLAM_DIR)/clam_parms.ini
+ export PARAMETER_FILE = $(CLAM_SCRIPTS)/clam_parms.ini
endif
# ensure that our version variables are available to sub-shells.
# sets the temporary directory.
export CLAM_TMP
ifeq "$(CLAM_TMP)" ""
- CLAM_TMP := $(GENERATED_DIR)/clam_tmp
+ CLAM_TMP := $(GENERATED_STORE)/clam_tmp
endif
#turned off for the moment, since this seems like a bad idea; we define clam tmp in terms of tmp sometimes, do not we???
# "CATCHER" is a hider that looks for errors in the command being run and
# stops the make if any are seen.
-CATCHER = $(HIDESH) $(CLAM_DIR)/badness_catcher.sh
+CATCHER = $(HIDESH) $(CLAM_SCRIPTS)/badness_catcher.sh
# "NOISY" causes the compilation to be verbose. All commands issued are echoed
# to the standard output.
fi
# set up the top-level for all build creations and logs and such.
- if [ -z "$GENERATED_DIR" ]; then
- define_yeti_variable GENERATED_DIR="$TMP/generated-feisty_meow"
+ if [ -z "$GENERATED_STORE" ]; then
+ define_yeti_variable GENERATED_STORE="$TMP/generated-feisty_meow"
fi
- if [ ! -d "$GENERATED_DIR" ]; then
- mkdir -p "$GENERATED_DIR"
+ if [ ! -d "$GENERATED_STORE" ]; then
+ mkdir -p "$GENERATED_STORE"
fi
# set up our effluent outsourcing valves.
- if [ -z "$TEMPORARIES_DIR" ]; then
- define_yeti_variable TEMPORARIES_DIR="$GENERATED_DIR/temporaries"
+ if [ -z "$TEMPORARIES_PILE" ]; then
+ define_yeti_variable TEMPORARIES_PILE="$GENERATED_STORE/temporaries"
fi
- if [ ! -d "$TEMPORARIES_DIR" ]; then
- mkdir -p "$TEMPORARIES_DIR"
+ if [ ! -d "$TEMPORARIES_PILE" ]; then
+ mkdir -p "$TEMPORARIES_PILE"
fi
# similarly, make sure we have someplace to look for our generated files, if
# now augment the environment if we found our build variables.
if [ $found_build_vars == 1 ]; then
# the binary directory contains our collection of handy programs.
- define_yeti_variable FEISTY_MEOW_BINARIES=$TARGETS_DIR
+ define_yeti_variable FEISTY_MEOW_BINARIES=$TARGETS_STORE
# add binaries created within build to the path.
define_yeti_variable PATH="$(dos_to_unix_path $FEISTY_MEOW_BINARIES):$PATH"
# Shared libraries are located via this variable.
##############
- # set the SHUNIT_DIR so our shunit tests can find the codebase.
- define_yeti_variable SHUNIT_DIR="$FEISTY_MEOW_SCRIPTS/shunit"
+ # set the SHUNIT_PATH so our shunit tests can find the codebase.
+ define_yeti_variable SHUNIT_PATH="$FEISTY_MEOW_SCRIPTS/shunit"
##############
--- /dev/null
+#!/bin/bash
+
+# finds all files that contain any one of the members of a list of patterns.
+
+function print_instructions()
+{
+ echo "This script requires a directory as the first parameter and then a list of"
+ echo "patterns to find within that directory. All the files matching a pattern"
+ echo "in the list will be opened in an editor."
+
+ echo "for example:"
+
+ echo " $(basename $0 .sh) ~/feisty_meow hoople.net hoople.org"
+ echo "the above will search the directory ~/feisty_meow for all matches to"
+ echo "the two patterns 'hoople.org' and 'hoople.net'."
+
+ exit 1
+}
+
+# capture the first parameter for the directory and remove it.
+search_directory="$1"; shift
+
+if [ -z "$search_directory" -o -z "$2" -o ! -d "$search_directory" ]; then
+ print_instructions
+fi
+
+function launch_editor_on_matching_files()
+{
+ pushd "$search_directory"
+
+ local donk
+
+ # iterate over the rest of the parameters as patterns.
+ for donk in $*; do
+
+ echo "searching [$search_directory] for string [$donk]"
+ edit_list="$(bash $FEISTY_MEOW_SCRIPTS/text/search_text.sh $donk)"
+ if [ ! -z "$edit_list" ]; then
+ gvim $edit_list 2>&1 | cat
+ fi
+
+#np
+#hmmm: why doesn't the np alias work?
+
+ done
+
+ popd
+}
+
+# invoke our function to do the real work.
+launch_editor_on_matching_files $*
+
+##############
+
+# example run for scanning feisty meow code for old domain names that are
+# defunct:
+# edit_files_matching $FEISTY_MEOW_APEX hoople.net hoople.org hoople.com yeticode.org yeticode.com yeticode.net cromp.com cromp.org cromp.net gruntose.net gruntose.org koeritz.net
+
+
# perform some calculations to get the right paths from our parameters.
if [ ! -z "$PARM_1" ]; then
# use the first real parameter since this is probably the 'source' version.
- export BUILD_SCRIPTS_DIR="$(dirname "$PARM_1")"
+ export BUILD_SCRIPTS_PATH="$(dirname "$PARM_1")"
THIS_TOOL_NAME="$(basename "$PARM_1")"
else
# use the zeroth parameter, since we know nothing more about our name.
- export BUILD_SCRIPTS_DIR="$(dirname "$PARM_0")"
+ export BUILD_SCRIPTS_PATH="$(dirname "$PARM_0")"
THIS_TOOL_NAME="$(basename "$PARM_0")"
fi
-BUILD_SCRIPTS_DIR="$(cd $(echo $BUILD_SCRIPTS_DIR | tr '\\\\' '/' ); \pwd)"
+BUILD_SCRIPTS_PATH="$(cd $(echo $BUILD_SCRIPTS_PATH | tr '\\\\' '/' ); \pwd)"
# figure out the other paths based on where we found this script.
-export BUILDING_HIERARCHY="$(echo "$BUILD_SCRIPTS_DIR" | sed -e 's/\(.*\)\/[^\/]*/\1/')"
-export CLAM_DIR="$(cd $BUILD_SCRIPTS_DIR/../clam ; \pwd)"
+export BUILDING_HIERARCHY="$(echo "$BUILD_SCRIPTS_PATH" | sed -e 's/\(.*\)\/[^\/]*/\1/')"
+export CLAM_SCRIPTS="$(cd $BUILD_SCRIPTS_PATH/../clam ; \pwd)"
# synonym to make other builds happy.
-export BUILDER_DIR="$BUILDING_HIERARCHY"
+export BUILDER_PATH="$BUILDING_HIERARCHY"
# set some clam parameters for compilation. if the script can't guess the
# right configuration, then you will need to set them in the last 'else'
# the production directory is the location for all the scripts and setup
# code needed to produce the executables for feisty meow.
-export PRODUCTION_DIR="$BUILD_TOP/production"
+export PRODUCTION_STORE="$BUILD_TOP/production"
## set up the top-level for all build creations and logs and such.
-#export GENERATED_DIR="$TMP/generated-feisty_meow"
-#if [ ! -d "$GENERATED_DIR" ]; then
-# mkdir -p "$GENERATED_DIR"
+#export GENERATED_STORE="$TMP/generated-feisty_meow"
+#if [ ! -d "$GENERATED_STORE" ]; then
+# mkdir -p "$GENERATED_STORE"
#fi
## set up our effluent outsourcing valves.
-#export TEMPORARIES_DIR="$GENERATED_DIR/temporaries"
-#if [ ! -d "$TEMPORARIES_DIR" ]; then
-# mkdir -p "$TEMPORARIES_DIR"
+#export TEMPORARIES_PILE="$GENERATED_STORE/temporaries"
+#if [ ! -d "$TEMPORARIES_PILE" ]; then
+# mkdir -p "$TEMPORARIES_PILE"
#fi
# this variable points at a folder where we store the generated products of
# the build, such as the binaries and installer packages.
-export RUNTIME_DIR="$GENERATED_DIR/runtime"
-if [ ! -d "$RUNTIME_DIR" ]; then
- mkdir -p "$RUNTIME_DIR"
+export RUNTIME_PATH="$GENERATED_STORE/runtime"
+if [ ! -d "$RUNTIME_PATH" ]; then
+ mkdir -p "$RUNTIME_PATH"
fi
# we define a log file storage area that can be relied on by the build.
-export LOGS_DIR="$GENERATED_DIR/logs"
-if [ ! -d "$LOGS_DIR" ]; then
- mkdir -p "$LOGS_DIR"
+export FEISTY_MEOW_LOGS="$GENERATED_STORE/logs"
+if [ ! -d "$FEISTY_MEOW_LOGS" ]; then
+ mkdir -p "$FEISTY_MEOW_LOGS"
fi
##############
# debugging area where we say what we think we know.
if [ ! -z "$SHELL_DEBUG" ]; then
- echo scripts: $BUILD_SCRIPTS_DIR
+ echo scripts: $BUILD_SCRIPTS_PATH
echo build tools hier: $BUILDING_HIERARCHY
echo this tool: $THIS_TOOL_NAME
echo repository: $FEISTY_MEOW_APEX
- echo clam: $CLAM_DIR
+ echo clam: $CLAM_SCRIPTS
fi
##############
got_bad=
# first the scripts directory; do we find this script there?
-if [ ! -f "$BUILD_SCRIPTS_DIR/$THIS_TOOL_NAME" ]; then
+if [ ! -f "$BUILD_SCRIPTS_PATH/$THIS_TOOL_NAME" ]; then
echo "This script cannot locate the proper build folders. The crucial path"
- echo "variable seems to be '$BUILD_SCRIPTS_DIR', which"
+ echo "variable seems to be '$BUILD_SCRIPTS_PATH', which"
echo "does not seem to contain '$THIS_TOOL_NAME' (this"
echo "script's apparent name)."
got_bad=1
fi
# next the clam directory; is the main variables file present there?
-if [ -z "$got_bad" -a ! -f "$CLAM_DIR/variables.def" ]; then
+if [ -z "$got_bad" -a ! -f "$CLAM_SCRIPTS/variables.def" ]; then
echo "The clam directory could not be located under our build tools hierarchy."
echo "Please examine the configuration and make sure that this script is in a"
echo "directory that resides at the same height as the 'clam' directory."
if [ -z "$got_bad" ]; then
# where we store the binaries used for building the rest of the code base.
- export CLAM_BINARY_DIR="$RUNTIME_DIR/clam_bin"
+ export CLAM_BINARIES="$RUNTIME_PATH/clam_bin"
# the final destination for the new binaries which provide the hoople
# build with all the apps it needs to get going.
- export TARGETS_DIR="$RUNTIME_DIR/binaries"
+ export TARGETS_STORE="$RUNTIME_PATH/binaries"
# targets directory is meaningful to clam, which will use it for output.
- export INTERMEDIATE_EXE_DIR="$TARGETS_DIR"
+ export INTERMEDIATE_STORE="$TARGETS_STORE"
# where we are building the apps before they get promoted.
#hmmm: could allow override on this if already set.
# calculate which build ini file to use.
- export BUILD_PARAMETER_FILE="$PRODUCTION_DIR/feisty_meow_config.ini"
+ export BUILD_PARAMETER_FILE="$PRODUCTION_STORE/feisty_meow_config.ini"
if [ ! -f "$BUILD_PARAMETER_FILE" ]; then
echo "Cannot find a useful build configuration file."
fi
# we should have established our internal variables now, so let's try
# using them.
- export PATH=$(dos_to_unix_path $CLAM_BINARY_DIR):$PATH
+ export PATH=$(dos_to_unix_path $CLAM_BINARIES):$PATH
# load up the helper variables for visual studio on winders.
if [ "$OPERATING_SYSTEM" == "WIN32" ]; then
- source "$BUILD_SCRIPTS_DIR/vis_stu_vars.sh"
+ source "$BUILD_SCRIPTS_PATH/vis_stu_vars.sh"
else
- export LD_LIBRARY_PATH="$TARGETS_DIR"
+ export LD_LIBRARY_PATH="$TARGETS_STORE"
fi
popd &>/dev/null # checking is over, jump back to the starting point.
# this always needs to be defined since functions aren't exported.
function make()
{
- /usr/bin/make -I "$CLAM_DIR" $*
+ /usr/bin/make -I "$CLAM_SCRIPTS" $*
}
# increments the build version number.
-mkdir -p "$TEMPORARIES_DIR"
+mkdir -p "$TEMPORARIES_PILE"
export PARAMETER_FILE
if [ ! -z "$BUILD_PARAMETER_FILE" ]; then
chmod u+w "$PARAMETER_FILE"
-new_buildini="$(mktemp "$TEMPORARIES_DIR/buildini.XXXXXX")"
+new_buildini="$(mktemp "$TEMPORARIES_PILE/buildini.XXXXXX")"
# whack the file just in case.
rm -f "$new_buildini"
echo -n "" >"$new_buildini"
export INCLUDED_FROM_BOOTSTRAP=true
# pull in our build variables using the path to this script.
-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
+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 '\\\\' '/' )"
+#echo build scripts dir after chewing: $BUILD_SCRIPTS_PATH
# load in feisty meow basic scripts, if not already loaded.
if [ -z "$FEISTY_MEOW_SCRIPTS_LOADED" ]; then
- bash "$BUILD_SCRIPTS_DIR/../core/reconfigure_feisty_meow.sh"
- source "$BUILD_SCRIPTS_DIR/../core/launch_feisty_meow.sh"
+ bash "$BUILD_SCRIPTS_PATH/../core/reconfigure_feisty_meow.sh"
+ source "$BUILD_SCRIPTS_PATH/../core/launch_feisty_meow.sh"
fi
source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
export FEISTY_MEOW_APEX="$(unix_to_dos_path $FEISTY_MEOW_APEX)"
# load in build variables based on our deduced paths.
-source "$BUILD_SCRIPTS_DIR/build_variables.sh" "$BUILD_SCRIPTS_DIR/build_variables.sh"
+source "$BUILD_SCRIPTS_PATH/build_variables.sh" "$BUILD_SCRIPTS_PATH/build_variables.sh"
##############
function prepare_binaries_dir()
{
# we'll store binaries here from the bootstrap process.
- if [ ! -d "$CLAM_BINARY_DIR" ]; then
- echo "creating binary dir now in $CLAM_BINARY_DIR"
- mkdir -p "$CLAM_BINARY_DIR"
+ if [ ! -d "$CLAM_BINARIES" ]; then
+ echo "creating binary dir now in $CLAM_BINARIES"
+ mkdir -p "$CLAM_BINARIES"
fi
- if [ ! -f "$CLAM_BINARY_DIR/paths.ini" ]; then
+ if [ ! -f "$CLAM_BINARIES/paths.ini" ]; then
echo "copied paths.ini to binary dir."
- cp "$PRODUCTION_DIR/paths.ini" "$CLAM_BINARY_DIR"
+ cp "$PRODUCTION_STORE/paths.ini" "$CLAM_BINARIES"
fi
}
function strip_cr {
ctrl_m=$'\015'
for i in $*; do
- tempgrep="$(mktemp "$TEMPORARIES_DIR/tempgrep.XXXXXX")"
+ tempgrep="$(mktemp "$TEMPORARIES_PILE/tempgrep.XXXXXX")"
grep -l "$ctrl_m" "$i" >$tempgrep
if [ ! -z "$(cat $tempgrep)" ]; then
- temp="$(mktemp "$TEMPORARIES_DIR/tempsed.XXXXXX")"
+ temp="$(mktemp "$TEMPORARIES_PILE/tempsed.XXXXXX")"
sed -e "s/$ctrl_m$//" <$i >$temp
mv -f $temp $i
fi
function promote {
prepare_binaries_dir
- if [ ! -f "$INTERMEDIATE_EXE_DIR/$1" ]; then
+ if [ ! -f "$INTERMEDIATE_STORE/$1" ]; then
echo "Failed to build the application $1--quitting now."
exit 1892
fi
- cp "$INTERMEDIATE_EXE_DIR/$1" "$CLAM_BINARY_DIR/$1"
- strip "$CLAM_BINARY_DIR/$1"
- chmod 755 "$CLAM_BINARY_DIR/$1"
+ cp "$INTERMEDIATE_STORE/$1" "$CLAM_BINARIES/$1"
+ strip "$CLAM_BINARIES/$1"
+ chmod 755 "$CLAM_BINARIES/$1"
}
elif [ "$OPERATING_SYSTEM" = "WIN32" ]; then
function promote {
prepare_binaries_dir
- if [ ! -f "$INTERMEDIATE_EXE_DIR/$1.exe" ]; then
+ if [ ! -f "$INTERMEDIATE_STORE/$1.exe" ]; then
echo "Failed to build the application $1.exe--quitting now."
exit 1892
fi
- cp "$INTERMEDIATE_EXE_DIR/$1.exe" "$CLAM_BINARY_DIR"
- chmod 755 "$CLAM_BINARY_DIR/$1.exe"
+ cp "$INTERMEDIATE_STORE/$1.exe" "$CLAM_BINARIES"
+ chmod 755 "$CLAM_BINARIES/$1.exe"
}
else
echo "The OPERATING_SYSTEM variable is unset or unknown. Bailing out."
# start the actual build process now...
# load in the feisty meow building environment.
-source "$BUILD_SCRIPTS_DIR/build_variables.sh" "$BUILD_SCRIPTS_DIR/build_variables.sh"
+source "$BUILD_SCRIPTS_PATH/build_variables.sh" "$BUILD_SCRIPTS_PATH/build_variables.sh"
# clean out any current contents.
-bash "$BUILD_SCRIPTS_DIR/whack_build.sh" clean
+bash "$BUILD_SCRIPTS_PATH/whack_build.sh" clean
# make this again so no one gets cranky.
-mkdir -p "$LOGS_DIR"
+mkdir -p "$FEISTY_MEOW_LOGS"
toolset_names=(makedep value_tagger version_stamper vsts_version_fixer write_build_config short_path sleep_ms zap_process playsound create_guid)
if [ -z "$SAVE_BINARIES" ]; then
for i in ${toolset_names[*]}; do
- whack_name="$CLAM_BINARY_DIR/$i$EXE_ENDING"
+ whack_name="$CLAM_BINARIES/$i$EXE_ENDING"
#echo removing "$whack_name"
rm -f "$whack_name"
done
fi
# make the clam shell scripts executable.
-chmod 755 "$CLAM_DIR"/*.sh
-chmod 755 "$CLAM_DIR"/cpp/*.sh
-#chmod 755 "$CLAM_DIR"/csharp/*.sh
+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_BINARY_DIR/makedep$EXE_ENDING" ]; then
+if [ ! -f "$CLAM_BINARIES/makedep$EXE_ENDING" ]; then
pushd "$TOOL_SOURCES/dependency_tool" &>/dev/null
make_code pre_compilation NO_DEPS=t OMIT_VERSIONS=t
make_code NO_DEPS=t OMIT_VERSIONS=t
- if [ ! -f "$INTERMEDIATE_EXE_DIR/makedep$EXE_ENDING" ]; then
+ if [ ! -f "$INTERMEDIATE_STORE/makedep$EXE_ENDING" ]; then
echo ""
echo ""
echo "The build of the makedep tool has failed. Unknown causes... Argh."
fi
# rebuild the version tools and other support apps.
-if [ ! -f "$CLAM_BINARY_DIR/value_tagger$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/version_stamper$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/vsts_version_fixer$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/write_build_config$EXE_ENDING" ]; then
+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" \
+ -o ! -f "$CLAM_BINARIES/write_build_config$EXE_ENDING" ]; then
pushd "$TOOL_SOURCES/clam_tools" &>/dev/null
make_code pre_compilation OMIT_VERSIONS=t
make_code OMIT_VERSIONS=t
#hmmm: really this should check all the expected apps.
# nice to just have an array of the things built by this guy.
- if [ ! -f "$INTERMEDIATE_EXE_DIR/version_stamper$EXE_ENDING" ]; then
+ if [ ! -f "$INTERMEDIATE_STORE/version_stamper$EXE_ENDING" ]; then
echo ""
echo ""
echo "The build of the version_stamper tool has failed. Unknown causes... Argh."
fi
# build a few other utilities.
-if [ ! -f "$CLAM_BINARY_DIR/short_path$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/sleep_ms$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/create_guid$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/zap_process$EXE_ENDING" \
- -o ! -f "$CLAM_BINARY_DIR/playsound$EXE_ENDING" ]; then
+if [ ! -f "$CLAM_BINARIES/short_path$EXE_ENDING" \
+ -o ! -f "$CLAM_BINARIES/sleep_ms$EXE_ENDING" \
+ -o ! -f "$CLAM_BINARIES/create_guid$EXE_ENDING" \
+ -o ! -f "$CLAM_BINARIES/zap_process$EXE_ENDING" \
+ -o ! -f "$CLAM_BINARIES/playsound$EXE_ENDING" ]; then
pushd "$TOOL_SOURCES/simple_utilities" &>/dev/null
make_code pre_compilation OMIT_VERSIONS=t
make_code OMIT_VERSIONS=t
# we won't do the full build if they told us to just do the bootstrap.
if [ -z "$JUST_BOOTSTRAP_APPS" ]; then
echo Cleaning up the temporary files that were built.
- bash "$BUILD_SCRIPTS_DIR/whack_build.sh"
+ bash "$BUILD_SCRIPTS_PATH/whack_build.sh"
#wrong! we don't want to whack it all. clean
# recreate our useful junk directories...
- mkdir -p "$GENERATED_DIR"
- mkdir -p "$TEMPORARIES_DIR"
- mkdir -p "$LOGS_DIR"
+ mkdir -p "$GENERATED_STORE"
+ mkdir -p "$TEMPORARIES_PILE"
+ mkdir -p "$FEISTY_MEOW_LOGS"
echo Now starting a normal build of the repository source code.
pushd "$FEISTY_MEOW_APEX" &>/dev/null
# avoid accidentally removing important stuff if our variables have not been previously
# established.
- if [ -z "$GENERATED_DIR" -o -z "$TEMPORARIES_DIR" ]; then
- echo The build whacking script cannot run because either the GENERATED_DIR
- echo variable or the TEMPORARIES_DIR variable have not been set. This makes
+ if [ -z "$GENERATED_STORE" -o -z "$TEMPORARIES_PILE" ]; then
+ echo The build whacking script cannot run because either the GENERATED_STORE
+ echo variable or the TEMPORARIES_PILE variable have not been set. This makes
echo it unsafe to remove anything in the build products.
exit 1
fi
# kerzap. the cleanups in production directory remove older locations of generated files.
rm -rf \
"$FEISTY_MEOW_APEX/generatedJUnitFiles" \
- "$GENERATED_DIR/clam_tmp" \
- "$GENERATED_DIR/logs" \
- "$PRODUCTION_DIR/__build_"*.h \
- "$PRODUCTION_DIR/manifest.txt" \
- "$RUNTIME_DIR/binaries" \
- "$RUNTIME_DIR/install" \
- "$RUNTIME_DIR/waste" \
- "$TEMPORARIES_DIR" \
- "$PRODUCTION_DIR/clam_bin" \
- "$PRODUCTION_DIR/binaries" \
- "$PRODUCTION_DIR/install" \
- "$PRODUCTION_DIR/logs" \
- "$PRODUCTION_DIR/waste"
+ "$GENERATED_STORE/clam_tmp" \
+ "$GENERATED_STORE/logs" \
+ "$PRODUCTION_STORE/__build_"*.h \
+ "$PRODUCTION_STORE/manifest.txt" \
+ "$RUNTIME_PATH/binaries" \
+ "$RUNTIME_PATH/install" \
+ "$RUNTIME_PATH/waste" \
+ "$TEMPORARIES_PILE" \
+ "$PRODUCTION_STORE/clam_bin" \
+ "$PRODUCTION_STORE/binaries" \
+ "$PRODUCTION_STORE/install" \
+ "$PRODUCTION_STORE/logs" \
+ "$PRODUCTION_STORE/waste"
# last few mentioning production dir are to clean older code.
# echo $(date): " cleaning generated files in source hierarchy..."
echo $(date): " ** aggressive cleaning activated..."
# get rid of the build binaries.
- rm -rf "$CLAM_BINARY_DIR"
+ rm -rf "$CLAM_BINARIES"
perl "$FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" "$FEISTY_MEOW_APEX" >>"$CRUDFILE"
fi
# The day must be a number, followed by a space. Anything after that
# space is considered the description of the event.
-use Env qw(CLOUD_DIR TMP);
+use Env qw(CLOUD_BASE TMP);
##############
if (! $CAL_FILE) {
# print "the CAL_FILE variable is not set.\n";
# print "defaulting it to a value that probably does not suit you.\n";
- $CAL_FILE = "$CLOUD_DIR/infobase/lists/calendar.dat";
+ $CAL_FILE = "$CLOUD_BASE/infobase/lists/calendar.dat";
}
#print "calfile is $CAL_FILE\n";
}
# load and run shUnit2
-source $SHUNIT_DIR/shunit2
+source $SHUNIT_PATH/shunit2
-sed -e 's/\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):.*/sudo addgroup --gid \4 \1 ; sudo adduser \1 --uid \3 --gid \4/' < $CLOUD_DIR/configuration/users/fred_and_alts.passwd >$TMP/zz_spouted_groups.sh
+sed -e 's/\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):.*/sudo addgroup --gid \4 \1 ; sudo adduser \1 --uid \3 --gid \4/' < $CLOUD_BASE/configuration/users/fred_and_alts.passwd >$TMP/zz_spouted_groups.sh
Now running the $TMP/spouted_groups.sh script to create the groups:
bash $TMP/zz_spouted_groups.sh