ajack 2003/09/08 09:33:51
Modified: . gumpy.sh
Log:
1) Moved gumpy.html (run output) to log not log/site
2) Cat the output of forrest.txt (if it exists) in case forrest isn't building the
site.
3) Increased version number to 1.0.2
Revision Changes Path
1.4 +29 -9 jakarta-gump/gumpy.sh
Index: gumpy.sh
===================================================================
RCS file: /home/cvs/jakarta-gump/gumpy.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gumpy.sh 5 Sep 2003 03:26:08 -0000 1.3
+++ gumpy.sh 8 Sep 2003 16:33:51 -0000 1.4
@@ -30,11 +30,12 @@
#
# Calculated
#
-export GUMPY_VERSION="1.0.1"
+export GUMPY_VERSION="1.0.2"
export GUMP_PYTHON=$GUMP/python
+export GUMP_TMP=$GUMP/tmp
export GUMP_HOST=`hostname -s`
export GUMP_DATE=`date`
-export GUMP_LOG=$GUMP_LOG_DIR/site/gumpy.html
+export GUMP_LOG=$GUMP_LOG_DIR/gumpy.html
export GUMP_PROFILE_LOG_DIR=$GUMP_LOG_DIR/myprofile
if [ -z "$GUMP_WORKSPACE" ] ; then
@@ -44,6 +45,19 @@
export SEPARATOR='------------------------------------------------------- G U M P Y'
#
+# Ensure directory structure to write into
+#
+cd $GUMP
+if [ ! -d $GUMP_LOG_DIR ] ; then
+ mkdir $GUMP_LOG_DIR;
+fi
+if [ ! -d $GUMP_LOG_DIR ] ; then
+ echo "Failed to create the directory \$GUMP_LOG_DIR variable, can't continue."
+ exit 1
+fi
+
+
+#
# Generate gumpy.html from this (into the WWW site)
#
umask 002
@@ -67,13 +81,6 @@
#
# Store the profile (into a myprofile dir)
#
-cd $GUMP
-if [ ! -d $GUMP_LOG_DIR ] ; then
- mkdir $GUMP_LOG_DIR;
-fi
-if [ ! -d $GUMP_LOG_DIR ] ; then
- exit 1
-fi
if [ ! -d $GUMP_PROFILE_LOG_DIR ] ; then
mkdir $GUMP_PROFILE_LOG_DIR;
@@ -121,13 +128,27 @@
python gump/integrate.py -w ../${GUMP_WORKSPACE}.xml ${GUMP_TARGET} >> $GUMP_LOG
2>&1
echo >> $GUMP_LOG
+#
+cd $GUMP_TMP
+echo $SEPARATOR >> $GUMP_LOG
+if [ -f forrest.txt ] ; then
+ cat forrest.txt >> $GUMP_LOG
+else
+ echo "No Forrest Output file @ $GUMP_TMP/forrest.txt" >> $GUMP_LOG
+fi
+echo $SEPARATOR >> $GUMP_LOG
+
+# Just in case...
+cd $GUMP
+
echo \</XMP\> >> $GUMP_LOG
pkill -P $$
# $Log$
-# Revision 1.3 2003/09/05 03:26:08 ajack
-# Moved gumpy.sh to site directory (to be w/ forrest results)
-# Added a version number
+# Revision 1.4 2003/09/08 16:33:51 ajack
+# 1) Moved gumpy.html (run output) to log not log/site
+# 2) Cat the output of forrest.txt (if it exists) in case forrest isn't building
the site.
+# 3) Increased version number to 1.0.2
#
# Revision 1.2 2003/05/30 22:02:56 nickchalko
# Fixing incomplete update from Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]