SF.net SVN: morphix: [2332] trunk/morph-scripts/debian

[email protected] Sat, 01 Jul 2006 16:24:52 -0700
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2332
Author:   bmsleight
Date:     2006-07-01 16:24:45 -0700 (Sat, 01 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2332&view=rev

Log Message:
-----------
 morphmini <packages> <other>

Modified Paths:
--------------
    trunk/morph-scripts/debian/changelog
    trunk/morph-scripts/morphmini/example.xml
    trunk/morph-scripts/morphmini/morphmini
Modified: trunk/morph-scripts/debian/changelog
===================================================================
--- trunk/morph-scripts/debian/changelog	2006-07-01 14:26:28 UTC (rev 2331)
+++ trunk/morph-scripts/debian/changelog	2006-07-01 23:24:45 UTC (rev 2332)
@@ -1,3 +1,9 @@
+morph-scripts (0.2-27) unstable; urgency=low
+
+  * morphmini <packages> <other>
+
+ -- bmsleight <[email protected]>  Sun, 02 Jul 2006 00:23:00 +0100
+ 
 morph-scripts (0.2-26) unstable; urgency=low
 
   * bump

Modified: trunk/morph-scripts/morphmini/example.xml
===================================================================
--- trunk/morph-scripts/morphmini/example.xml	2006-07-01 14:26:28 UTC (rev 2331)
+++ trunk/morph-scripts/morphmini/example.xml	2006-07-01 23:24:45 UTC (rev 2332)
@@ -15,7 +15,7 @@
      <file>http://www.barwap.com/morphix/mmorphix/morphixsound2.wav</file>
     </remote>
    </filelist>
-   <root> <!-- Files or Packages to be overlaid on the rootfile system - good for saving ramspace-->
+   <root> <!-- Files or Packages to be overlaid on the rootfile system - good for saving ramspace -->
     <files>
      <local>
       <from>/home/morph/test.jpg</from>
@@ -30,7 +30,7 @@
       <to>/usr/share/misc/</to>
      </remote>
     </files>
-    <packages> <!-- Not yet implemented -->
+    <packages>
      <local>
       <targz>/home/morph/example.tar.gz</targz>
      </local>
@@ -53,6 +53,9 @@
      <command>echo "Hello 6"</command>
     </postX>
    </commandlist>
+   <other> <!-- used to make a minimodule in another way - command will be passed $1 for minimodule filesystem -->
+    <buildcommand>echo "Hello World" &gt; $1/morphix/hello.txt</buildcommand>
+   </other>
   </minimod>
  </group>
 </comps>

Modified: trunk/morph-scripts/morphmini/morphmini
===================================================================
--- trunk/morph-scripts/morphmini/morphmini	2006-07-01 14:26:28 UTC (rev 2331)
+++ trunk/morph-scripts/morphmini/morphmini	2006-07-01 23:24:45 UTC (rev 2332)
@@ -235,9 +235,31 @@
 
 process_root_packages ()
 {
-echo "Root Packages - Not yet done"
+xml_get_tmp //minimod/root/packages local targz $TEMPLATE
+RETURN_VALUE=$(cat $TMP_FILE)
+for TARS in $RETURN_VALUE
+do 
+ tar xvzf $TARS -C $TMP_DIR/minimod/root/
+done
+xml_get_tmp //minimod/root/packages remote targz $TEMPLATE
+RETURN_VALUE=$(cat $TMP_FILE)
+for TARS in $RETURN_VALUE
+do 
+ wget --tries=3 --timeout=60 --directory-prefix=$TMP_DIR/ --output-document=$TMP_DIR/temp.tar.gz $TARS
+ tar xvzf $TMP_DIR/temp.tar.gz -C $TMP_DIR/minimod/root/
+ rm $TMP_DIR/temp.tar.gz
+done
 }
 
+process_other ()
+{
+xml_get_tmp //minimod other buildcommand $TEMPLATE
+if [ -s $TMP_FILE ]
+then
+  cat $TMP_FILE >>$TMP_DIR/other_commands.sh
+fi
+sh $TMP_DIR/other_commands.sh $TMP_DIR/minimod/
+}
 
 build_minimodule ()
 {
@@ -293,6 +315,7 @@
 process_command_prex
 process_command_postx
 process_command_x
+process_other
 build_minimodule
 remove_minimodule_tmp
 


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