2009-07-31 23:16:02 +02:00
#! /bin/bash
2009-07-30 22:21:44 +02:00
#
2009-07-31 00:40:44 +02:00
rev_new_raw = $( svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r' )
[ -n " $rev_new_raw " ] || rev_new_raw = $( SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r' )
2009-07-30 22:21:44 +02:00
2009-07-31 00:40:44 +02:00
rev_new_raw = $( echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/' )
rev_new = 0
a = $( echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/' )
let "a+=0"
#find max rev
while [ " $a " ] ; do
[ " $a " -gt " $rev_new " ] && rev_new = $a
rev_new_raw = $( echo -n $rev_new_raw | sed 's/[0-9]*[^0-9]*\([0-9]*\)\(.*\)/\1 \2/' )
2010-12-31 00:49:22 +01:00
a = $( echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/' )
2009-07-31 00:40:44 +02:00
done
2009-07-30 22:21:44 +02:00
2009-07-31 00:40:44 +02:00
rev_old = $( cat ./source/svnrev.c 2>/dev/null | tr -d '\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/' )
if [ " $rev_new " != " $rev_old " ] || [ ! -f ./source/svnrev.c ] ; then
2010-12-31 00:49:22 +01:00
2009-07-31 00:40:44 +02:00
cat <<EOF > ./source/svnrev.c
#define SVN_REV "$rev_new"
const char *GetRev( )
{
return SVN_REV;
}
EOF
if [ -n " $rev_new " ] ; then
echo " Changed Rev $rev_old to $rev_new " >& 2
else
echo "svnrev.c created" >& 2
fi
2009-07-30 22:21:44 +02:00
echo >& 2
2009-11-21 23:59:57 +01:00
rev_new = ` expr $rev_new + 1`
2011-03-14 22:19:21 +01:00
rev_date = ` date -u +%Y%m%d%H%M`
2010-12-31 00:49:22 +01:00
2009-11-17 23:57:41 +01:00
cat <<EOF > ./HBC/ME TA.XML
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes" ?>
<app version = "1" >
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
2011-06-29 22:45:40 +02:00
<version>2.2 r$rev_new </version>
2009-11-21 23:59:57 +01:00
<release_date>$rev_date </release_date>
2011-07-26 00:28:22 +02:00
<!-- // remove this line to enable arguments
<arguments>
<arg>--ios= 250</arg>
<arg>--usbport= 0</arg>
</arguments>
// remove this line to enable arguments -->
2010-12-31 00:49:22 +01:00
<no_ios_reload/>
2009-11-17 23:57:41 +01:00
<short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.
Features are automatic widescreen detection, coverdownload, parental control, theme support and many more.
Credits:
Coding: Dimok, nIxx, giantpune, ardi, Hungyip84, DrayX7, Lustar, r-win, WiiShizzza
Artworks: cyrex, NeoRame
2011-06-29 22:45:40 +02:00
Validation: Cyan and many others
Issue management: Cyan / Dimok
2009-11-17 23:57:41 +01:00
WiiTDB / Hosting covers: Lustar
Hosting updates files: CorneliousJD
USBLoader sources: Waninkoko, Kwiirk, Hermes
2011-06-29 22:45:40 +02:00
cIOS maintenance: davebaol, xabby666, XFlak and Rodries
2009-11-17 23:57:41 +01:00
Languages files updates: Kinyo and translaters
Hosting themes: Deak Phreak
Libwiigui: Tantric
Libogc/Devkit: Shagkur and Wintermute
FreeTypeGX: Armin Tamzarian.
Links:
USB Loader GX Project Page and Support Site:
http://code.google.com/p/usbloader-gui/
Help Website:
http://usbloadergx.koureio.net/
WiiTDB Site:
http://wiitdb.com
Themes Site:
http://wii.spiffy360.com
Languages Translaters Page:
http://gbatemp.net/index.php?showtopic= 155252
Libwiigui Website:
http://wiibrew.org/wiki/Libwiigui/
FreeTypeGX Project Page:
http://code.google.com/p/freetypegx/
Gettext Official Page:
http://www.gnu.org/software/gettext/gettext.html
</long_description>
</app>
EOF
2009-07-30 22:21:44 +02:00
fi
echo $a