Revision: 2238
Author: bmsleight
Date: 2006-05-19 14:25:19 -0700 (Fri, 19 May 2006)
ViewCVS: http://svn.sourceforge.net/morphix/?rev=2238&view=rev
Log Message:
-----------
Adding my local_build script, builds minis or mains
Modified Paths:
--------------
trunk/mmaker/utils/auto-testing/AutoTestingMini.xml
Added Paths:
-----------
trunk/mmaker/utils/local_autobuilds.sh
Modified: trunk/mmaker/utils/auto-testing/AutoTestingMini.xml
===================================================================
--- trunk/mmaker/utils/auto-testing/AutoTestingMini.xml 2006-05-18 21:51:24 UTC (rev 2237)
+++ trunk/mmaker/utils/auto-testing/AutoTestingMini.xml 2006-05-19 21:25:19 UTC (rev 2238)
@@ -18,6 +18,7 @@
<X> <!-- Commands to run in X windows -->
<command>xscreensaver-command -exit & </command>
<command>/bin/bash $1/morphix/files/cat_file.sh</command>
+ <command>xscreensaver-command -exit & </command>
</X>
<postX> <!-- Commands to run after X windows shutdown -->
<command>echo " * Running AutoTesting debug infomation"</command>
Added: trunk/mmaker/utils/local_autobuilds.sh
===================================================================
--- trunk/mmaker/utils/local_autobuilds.sh (rev 0)
+++ trunk/mmaker/utils/local_autobuilds.sh 2006-05-19 21:25:19 UTC (rev 2238)
@@ -0,0 +1,60 @@
+#!/bin/sh
+# Copyright (c) 2004, Brendan M. Sleight <bmsleight@barwap._REMOVE_SPAM_TRAP.com>
+#
+# GPL V2 or later
+#
+#local_build mini upload_file_dir local_file_dir template_dir
+MODULE_TYPE="$1"
+TEMPLATE_DIR="$2"
+LOCAL_DIR="$3"
+UPLOAD_DIR="$4"
+
+if [ -z "$MODULE_TYPE" -o -z "$TEMPLATE_DIR" -o -z "$LOCAL_DIR" -o -z "$UPLOAD_DIR" ]; then
+ echo "Usage: $0 mini template_dir local_file_dir upload_file_dir "
+ echo " "
+ exit
+fi
+
+
+#MAINMODS="/home/morph/local_autobuilds/templates/main/* $1"
+#MINIMODS="/home/morph/local_autobuilds/templates/mini/* $2"
+#WORKING_DIR="/home/morph/local_autobuilds/builds"
+LOCAL_TESTING="/home/morph/autobuilds/"
+
+upload_scp() {
+ scp $2/$1.log morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/$3/
+ scp $2/$1.mod.md5 morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/$3/
+ scp $2/$1.mod morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/$3/
+ scp $2/$1.xml morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/$3/
+ cp $2/$1.log $2/$1.xml $2/$1.mod.md5 $2/$1.mod $LOCAL_TESTING/$3/
+}
+
+build_main() {
+for mod in $TEMPLATE_DIR/*.xml; do
+ BUILDTIME=`date +"-%F_%H%M"`
+ BASENAME=`basename ${mod} .xml`
+ echo "Building $BASENAME"
+ echo "Start Build: $BUILDTIME" > $LOCAL_DIR/$BASENAME$BUILDTIME.log
+ if [ "$MODULE_TYPE" = "main" ]; then
+ sudo mmaker $mod $LOCAL_DIR/$BASENAME$BUILDTIME.mod >> $LOCAL_DIR/$BASENAME$BUILDTIME.log 2>&1
+ else
+ sudo morphmini $mod $LOCAL_DIR/$BASENAME$BUILDTIME.mod >> $LOCAL_DIR/$BASENAME$BUILDTIME.log 2>&1
+ fi
+ md5sum $LOCAL_DIR/$BASENAME$BUILDTIME.mod > $LOCAL_DIR/$BASENAME$BUILDTIME.mod.md5
+ ENDTIME=`date +"-%F_%H%M"`
+ echo "End Build: $ENDTIME" >> $LOCAL_DIR/$BASENAME$BUILDTIME.log
+ cp $mod $LOCAL_DIR/$BASENAME$BUILDTIME.xml
+ upload_scp "$BASENAME$BUILDTIME" "$LOCAL_DIR" "$UPLOAD_DIR" >> $LOCAL_DIR/$BASENAME$BUILDTIME.log
+ # Cleanup time!
+ sudo rm -rf /tmp/libmorphix*
+done
+}
+
+
+build_main
+
+# delete all files in WORKING_DIR after 3 days
+find $LOCAL_DIR/[^local]* -ctime +1 -exec rm {} \;
+
+
+
Property changes on: trunk/mmaker/utils/local_autobuilds.sh
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.