Revision: 2175
Author: bmsleight
Date: 2006-03-27 14:15:00 -0800 (Mon, 27 Mar 2006)
ViewCVS: http://svn.sourceforge.net/morphix/?rev=2175&view=rev
Log Message:
-----------
Adding some templates for morphmini
Modified Paths:
--------------
trunk/morph-scripts/morphmini/morphimini
Added Paths:
-----------
trunk/morph-scripts/morphmini/templates/
trunk/morph-scripts/morphmini/templates/MorphixMini-Firefox.xml
Modified: trunk/morph-scripts/morphmini/morphimini
===================================================================
--- trunk/morph-scripts/morphmini/morphimini 2006-03-27 19:32:44 UTC (rev 2174)
+++ trunk/morph-scripts/morphmini/morphimini 2006-03-27 22:15:00 UTC (rev 2175)
@@ -69,38 +69,47 @@
{
xml_get_tmp //minimod/commandlist preX command $TEMPLATE
#sed -e 's/^/\/bin\/sh /g' $TMP_FILE >>$TMP_DIR/minimod/morphix/loadmod.sh
-cat $TMP_FILE >>$TMP_DIR/minimod/morphix/loadmod.sh
+if [ -s $TMP_FILE ]
+then
+ cat $TMP_FILE >>$TMP_DIR/minimod/morphix/loadmod.sh
+fi
}
process_command_x ()
{
xml_get_tmp //minimod/commandlist X command $TEMPLATE
-echo "#!/bin/sh " >$TMP_DIR/minimod/morphix/commandsX.sh
-chmod a+x $TMP_DIR/minimod/morphix/commandsX.sh
-#sed -e 's/^/\/bin\/sh /g' $TMP_FILE >>$TMP_DIR/minimod/morphix/commandsX.sh
-cat $TMP_FILE >>$TMP_DIR/minimod/morphix/commandsX.sh
-DOLLAR="$"
-DOLLARSTARTX=$DOLLAR"STARTX"
-DOLLAR1=$DOLLAR"1"
-DOLLARUSER=$DOLLAR"USER"
-cat >>$TMP_DIR/minimod/morphix/loadmod.sh <<EOF
+if [ -s $TMP_FILE ]
+then
+ echo "#!/bin/sh " >$TMP_DIR/minimod/morphix/commandsX.sh
+ chmod a+x $TMP_DIR/minimod/morphix/commandsX.sh
+ #sed -e 's/^/\/bin\/sh /g' $TMP_FILE >>$TMP_DIR/minimod/morphix/commandsX.sh
+ cat $TMP_FILE >>$TMP_DIR/minimod/morphix/commandsX.sh
+ DOLLAR="$"
+ DOLLARSTARTX=$DOLLAR"STARTX"
+ DOLLAR1=$DOLLAR"1"
+ DOLLARUSER=$DOLLAR"USER"
+ cat >>$TMP_DIR/minimod/morphix/loadmod.sh <<EOF
USER=$DOLLAR(cat /etc/sysconfig/username)
(while [ -z $DOLLARSTARTX ]; do STARTX=$DOLLAR(ps -C x-session-manager -o pid=); sleep 1; done ; su -c "export DISPLAY=:0.0 ; \\
/bin/bash $DOLLAR1/morphix/commandsX.sh \\
" - $DOLLARUSER ) &
EOF
+fi
}
process_command_postx ()
{
xml_get_tmp //minimod/commandlist postX command $TEMPLATE
-echo "#!/bin/sh " >$TMP_DIR/minimod/morphix/S11PostX11.sh
-chmod a+x $TMP_DIR/minimod/morphix/S11PostX11.sh
-#sed -e 's/^/\/bin\/sh /g' $TMP_FILE >>$TMP_DIR/minimod/morphix/S11PostX11.sh
-cat $TMP_FILE >>$TMP_DIR/minimod/morphix/S11PostX11.sh
-DOLLAR="$"
-DOLLAR1=$DOLLAR"1"
-echo "cp $DOLLAR1/morphix/S11PostX11.sh /morphix/rc.m/S11PostX11.sh " >>$TMP_DIR/minimod/morphix/loadmod.sh
+if [ -s $TMP_FILE ]
+then
+ echo "#!/bin/sh " >$TMP_DIR/minimod/morphix/S11PostX11.sh
+ chmod a+x $TMP_DIR/minimod/morphix/S11PostX11.sh
+ #sed -e 's/^/\/bin\/sh /g' $TMP_FILE >>$TMP_DIR/minimod/morphix/S11PostX11.sh
+ cat $TMP_FILE >>$TMP_DIR/minimod/morphix/S11PostX11.sh
+ DOLLAR="$"
+ DOLLAR1=$DOLLAR"1"
+ echo "cp $DOLLAR1/morphix/S11PostX11.sh /morphix/rc.m/S11PostX11.sh " >>$TMP_DIR/minimod/morphix/loadmod.sh
+fi
}
build_minimodule ()
Added: trunk/morph-scripts/morphmini/templates/MorphixMini-Firefox.xml
===================================================================
--- trunk/morph-scripts/morphmini/templates/MorphixMini-Firefox.xml (rev 0)
+++ trunk/morph-scripts/morphmini/templates/MorphixMini-Firefox.xml 2006-03-27 22:15:00 UTC (rev 2175)
@@ -0,0 +1,15 @@
+<comps>
+ <group>
+ <minimod>
+ <version>0.0.1</version>
+ <description>MorphMini launch firefox</description>
+ <minitag>MorphixMini-Firefox</minitag>
+ <maintag>ALL</maintag>
+ <commandlist> <!-- Commands to be started from minimodule -->
+ <X> <!-- Commands to run in X windows -->
+ <command>firefox http://www.morphix.org & </command><!-- & is xml foramt for & -->
+ </X>
+ </commandlist>
+ </minimod>
+ </group>
+</comps>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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.