now should find all projects under ~/apps, not just site avenger ones.
also usage of word apps has been cleaned up where it can be.
for program_name in ${RUN_TARGETS}; do
base=$(basename $program_name);
if [ "$OP_SYSTEM" == "WIN32" ]; then
- # extra step to force win32 apps to stay held in our grip,
+ # extra step to force win32 applications to stay held in our grip,
# since they will float off and appear to have stopped when
# run by cygwin. but by grabbing the i/o stream, we know it's
# running until it's done.
# count the number of sub-directories in a directory and echo the result.
function count_directories()
{
- local appsdir="$1"; shift
- numdirs="$(find "$appsdir" -mindepth 1 -maxdepth 1 -type d | wc -l)"
+ local subbydir="$1"; shift
+ numdirs="$(find "$subbydir" -mindepth 1 -maxdepth 1 -type d | wc -l)"
echo $numdirs
}
if [ -d "$HOME/active" ]; then
REPOSITORY_LIST+="$(find "$HOME/active" -maxdepth 1 -mindepth 1 -type d) "
fi
- # add in any site avenger applications that are in the apps folder.
+ # add in any site avenger applications that are in the applications folder.
if [ -d "$HOME/apps" ]; then
- # back up all the apps.
+ # general search for normal folders at top level
+ REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname ".git" -type d -exec dirname {} ';') "
+
+ # special search for site avenger directories; they have avenger5 as second level.
REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname "avenger5" -type d) "
fi
ECLIPSE_DIR=$HOME/eclipse
fi
if [ ! -d "$ECLIPSE_DIR" ]; then
- ECLIPSE_DIR=$HOME/apps/eclipse
+ ECLIPSE_DIR=/usr/local/fred/eclipse
fi
if [ ! -d "$ECLIPSE_DIR" ]; then
ECLIPSE_DIR="c:/tools/eclipse"
# where we store the binaries used for building the rest of the code base.
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.
+ # build with all the applications it needs to get going.
export TARGETS_STORE="$RUNTIME_PATH/binaries"
# targets directory is meaningful to clam, which will use it for output.
export INTERMEDIATE_STORE="$TARGETS_STORE"
- # where we are building the apps before they get promoted.
+ # where we are building the applications before they get promoted.
#hmmm: could allow override on this if already set.
# calculate which build ini file to use.
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.
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 ""
# fixes the links that wine makes to our home folder under linux. that's a really bad
# practice that exposes all one's private files to the wine subsystem. dumb.
-# instead, this replaces those links to a local folder with things that the wine apps
+# instead, this replaces those links to a local folder with things that the wine applications
# can't pooch up too much. must be used within a wine user directory. for example,
# i fix my directory '~/.PlayOnLinux/wineprefix/Steam/drive_c/users/fred' with this.