SF.net SVN: morphix: [2373] trunk/morph-scripts/mmorphix/morphing-morphix-gui.sh

[email protected] Wed, 26 Jul 2006 15:00:51 -0700
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2373
Author:   bmsleight
Date:     2006-07-26 15:00:47 -0700 (Wed, 26 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2373&view=rev

Log Message:
-----------
Example 2 completed

Modified Paths:
--------------
    trunk/morph-scripts/mmorphix/morphing-morphix-gui.sh
Modified: trunk/morph-scripts/mmorphix/morphing-morphix-gui.sh
===================================================================
--- trunk/morph-scripts/mmorphix/morphing-morphix-gui.sh	2006-07-25 20:52:31 UTC (rev 2372)
+++ trunk/morph-scripts/mmorphix/morphing-morphix-gui.sh	2006-07-26 22:00:47 UTC (rev 2373)
@@ -170,8 +170,30 @@
 Isomorph is used in all of the other examples.
 
 For example we will now run the command :-
-isomorph --list MyMorph.iso
-"
+isomorph --list MyMorph.iso"
+MESSAGE_MINIMORPH_1="MiniMorph Example
+The next Morph is make the MiniModule to auto run an 
+application once the window manager has loaded.
+
+This Morph is to demonstrate the use of one of the morphix 
+tools - morphmini. This is mmaker's little brother. As in 
+other examples this makes use of XML template files."
+MESSAGE_MINIMORPH_2="MiniMorph Example
+
+MorphixMini-Launch-MM-GUI.xml"
+MESSAGE_MINIMORPH_3="MiniMorph Example
+We will now build the MiniModule then add the MiniModule to
+the the LiveCD.
+
+morphmini ./MorphixMini-Launch-MM-GUI.xml 
+          ./MorphixMini-Launch-MM-GUI.mod
+	  
+isomorph --add mini ./MorphixMini-Launch-MM-GUI.mod 
+          ./MyMorph.iso ./tmp.iso
+   
+mv ./tmp.iso ./MyMorph.iso"
+###########################################################
+
 }
 
 
@@ -274,7 +296,7 @@
 {
  TMP_MENU_DETAIL=$1
  TMP_FILE_AREA=$2
- XD='Xdialog --title "$TMP_MENU_DETAIL" --no-cancel --tailbox ' 
+ XD='Xdialog --title "$TMP_MENU_DETAIL" --no-cancel --fixed-font --tailbox ' 
  XD2=' -1 -1 0'
  eval $XD $TMP_FILE_AREA $XD2 2>> $TMP_FILE
  TMP=$?
@@ -529,6 +551,16 @@
  if [ "$?" = "1" ]
  then
 	log_file "build_minimodule"
+	xdialog_message "$MESSAGE_MINIMORPH_1"
+	xdialog_tail_box "$MESSAGE_MINIMORPH_2" "/usr/share/morphing-morphix/MorphixMini-Launch-MM-GUI.xml"
+	xdialog_message "$MESSAGE_MINIMORPH_3"
+	log_and_do_command_progress "sudo morphmini /usr/share/morphing-morphix/MorphixMini-Launch-MM-GUI.xml \
+		$MNT_POINT/mmorphix/morphed/MorphixMini-Launch-MM-GUI"
+	log_and_do_command_progress "sudo isomorph --add mini \ 
+		$MNT_POINT/mmorphix/morphed/MorphixMini-Launch-MM-GUI.mod \ 
+		$MNT_POINT/mmorphix/iso/$SETTING_MYMORPH $MNT_POINT/mmorphix/iso/tmp.iso"
+	log_and_do_command "mv -f $MNT_POINT/mmorphix/iso/tmp.iso \ 
+		$MNT_POINT/mmorphix/iso/$SETTING_MYMORPH"
  fi
  main_menu
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV