a bit more.
--- /dev/null
+
+"kona" is the feisty meow concerns ltd. name for our java components.
+
+
--- /dev/null
+
+package org.feistymeow.process;
+
+//still in progress...
+// not compilable yet probably,
+// plus missing the timed features of ethread.
+
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * A simple java thread that hearkens back to the HOOPLE C++ ethread in features.
+ *
+ * @author Chris Koeritz
+ */
+class ethread implements Runnable
+{
+//fix below to use better way to get class object.
+ private static Log c_logger = LogFactory.getLog(ethread.class);
+
+ private volatile Thread c_RealThread = null;
+
+ // the only variable on which both synchronize is the "thread finished" variable.
+ public ethread()
+ {
+ }
+
+ /**
+ * Begins execution of the thread.
+ */
+ public void start()
+ {
+ if( null == this.c_RealThread )
+ {
+ this.c_RealThread = new Thread(this);
+ this.c_RealThread.start();
+ }
+ }
+
+ /**
+ * Stops execution of the thread, or at least attempts to.
+ */
+ public void stop()
+ {
+ Thread goAway = c_RealThread;
+ c_RealThread = null;
+ if (null != goAway) { goAway.interrupt(); }
+ }
+
+ /**
+ * Returns true if the thread isn't null.
+ */
+ public boolean threadRunning()
+ {
+ return (null != this.c_RealThread);
+ }
+
+ public void run()
+ {
+ if (false == threadRunning())
+ {
+ return; // stopped before it ever started
+ }
+
+ }
+
+}
include variables.def
PROJECT = feisty_meow_sources
-BUILD_BEFORE = start_make nucleus scripts octopi graphiq webby production end_make
+BUILD_BEFORE = start_make nucleus scripts octopi graphiq webby kona production end_make
include rules.def
#
# go to the main folder of the project you're building before you run this.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
echo "$(date_stringer)"
echo "Building application from $(\pwd)"
echo " via standard 'configure;make;sudo make install' process..."
mkdir "$FEISTY_MEOW_GENERATED"
fi
+# just a variable we use in here to refer to the generated variables file.
GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/feisty_meow_variables.sh"
-echo >"$GENERATED_FEISTY_MEOW_VARIABLES"
+# create the alias file as totally blank.
+echo -n >"$GENERATED_FEISTY_MEOW_VARIABLES"
for i in FEISTY_MEOW_DIR FEISTY_MEOW_SCRIPTS FEISTY_MEOW_GENERATED; do
echo "export $i=${!i}" >>"$GENERATED_FEISTY_MEOW_VARIABLES"
done
alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
#regen-- this might be better as a function.
-alias regenerate='bash $FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh ; perl $FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl ; echo ; nechung'
+alias regenerate='bash $FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh ; echo ; nechung'
alias reroot='chown -R root:root /root'
alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
alias ren='\mv -v -i '
# This creates a temporary directory for transient files if such a directory
# does not already exist.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
if [ ! -z "$SHELL_DEBUG" ]; then echo creating temporary directory...; fi
if [ -z "$TMP" ]; then
# a handy little method that can be used for date strings. it was getting
# really tiresome how many different ways the script did the date formatting.
-function date_stringer() { date +"%Y_%m_%e_%H%M_%S" | tr -d '/\n/' }
+function date_stringer() {
+ date +"%Y_%m_%e_%H%M_%S" | tr -d '/\n/'
+}
# makes a directory of the name specified and then tries to change the
# current directory to that directory.
#!/bin/bash
(
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
echo '###############################################################################'
echo
echo Your user name is $USER on a computer named $(hostname).
#!/bin/bash
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
temphost=$(hostname | sed -e 's/\([^.]*\)\..*/\1/')
tar -czf /z/stuffing/archives/backup_dbs_${temphost}_$(date_stringer).tar.gz /home/archives/mysql_dbs/*
#!/bin/bash
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
bad_file="$HOME/bad_protections.txt"
if [ $# = 0 ]; then dirname=$HOME; export dirname;
else dirname=$1; export dirname; fi
#!/bin/bash
# a simple script that backs up the opensim database assets.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/')
bkupname=opensim_bkup_${host}_$(date_stringer).mysql_bkup
#!/bin/bash
# a simple script that backs up the opensim database assets.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/')
bkupname=osgrid_bkup_${host}_$(date_stringer).mysql_bkup
# keeps trying to mount the cd on a mac mini to overcome
# a new bug in itunes seen as of osx leopard upgrade.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
mountpoint=/Volumes/mounty_cd
echo "$(date_stringer): starting cd mounter..."
# This program is meant to be started by the program keep_awake and has
# the basic guts that are meant to execute inside of a semi-perpetual loop.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
# save the process id for the goodbye program to deal with.
#echo $$ >>$TMP/trash.last_keep_awake_process
#don't let the shutdown guy know who we are; we want to keep running now.
# Thanks to Kevin Wika for this shell.
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
trap '' HUP
trap '' INT
trap '' QUIT
source $HOME/yeti/scripts/launch_feisty_meow.sh
export host=$(hostname)
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
-
# use this to always print the message.
# export hostlist=$host