#!/bin/bash
# Shell Script to return old version number for Xmame if the version
# argument is given, otherwise run Xmame with all arguments
# this is a test version, may need to reconstruct the string without the
# -version argument, so that we can call Xmame even if the -version
# argument is given. This depends on the functionality of MythTV
# which is why we're writing this script in the first place
flag=0
for X in $*
do
if [ "$X" = '-version' ]; then
flag=1
fi
if [ "$X" = '--version' ]; then
flag=1
fi
if [ "$X" = '-history_file' ]; then
G=1
echo 1
else
if [ "$G" != 1 ]; then
export F="$F $X"
else
G=0
echo 0
fi
fi
done
if [ $flag = 1 ]; then
echo 'xmame (x11) version 0.96 (May 11 2005)'
else
# echo OUTPUT:
# echo $F
xmame $F
fi
This is probably not the most elegant script, but I wrote it at 3AM one morning. It also gets rid of the --history_file option, since that doesn't seem to be supported in the new versions of xmame. I put this script in /usr/bin and changed the setup in mythgame to call /usr/bin/blah (the name of the script) instead of /usr/bin/xmame.> I don't like the idea of having to use MythGame from CVS if possible.
You couldn't just mix SVN MythGame with 0.18 of MythTV anyway.
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
