diff --git a/projects/mtg/debian/changelog b/projects/mtg/debian/changelog index 2fef9eb57..d1ab8a580 100644 --- a/projects/mtg/debian/changelog +++ b/projects/mtg/debian/changelog @@ -1,5 +1,6 @@ -wagic (0.15.1maemo1) unstable; urgency=low +wagic (0.16.0maemo0) unstable; urgency=low - * Fixed upgrade problem causing the multi-land per turn bug - * Fixed shop card display problem when using touch interface - -- Xawotihs Mon, 16 Apr 2011 14:11:42 +0200 + * Fixed Phonon sound problem + * Improved upgrade script + * Wagic 0.16.0 + -- Xawotihs Mon, 18 Jul 2011 14:11:42 +0200 diff --git a/projects/mtg/debian/control b/projects/mtg/debian/control index e731794ec..e0de1ae85 100644 --- a/projects/mtg/debian/control +++ b/projects/mtg/debian/control @@ -2,7 +2,7 @@ Source: wagic Section: user/games Priority: extra Maintainer: xawotihs -Build-Depends: debhelper (>= 5), libqt4-dev, zlib1g-dev, libx11-dev, mce-dev, libgif-dev, libjpeg62-dev, libpng12-dev, +Build-Depends: debhelper (>= 5), libqt4-dev, zlib1g-dev, libx11-dev, mce-dev Standards-Version: 3.7.3 Homepage: http://wololo.net/wagic/ XSBC-Bugtracker: http://code.google.com/p/wagic/issues/list diff --git a/projects/mtg/debian/launcher b/projects/mtg/debian/launcher index 8c31f5c1f..5e16ef703 100755 --- a/projects/mtg/debian/launcher +++ b/projects/mtg/debian/launcher @@ -8,14 +8,21 @@ if grep -q /home/user/MyDocs /proc/mounts; then dirSize=`du -s /home/user/wagic/Res | awk '{print $1}'` # Size available on the FAT partition avaSize=`df | grep /dev/mmcblk0p1 | awk '{print $4}'` - if [ /home/user/wagic/Res/sets/primitives/mtg.txt -nt /home/user/MyDocs/wagic/Res/sets/primitives/mtg.txt ]; - then if [ $avaSize -gt $dirSize ] - then - echo "Copying resources on the FAT partition to ease customization" + if [ $avaSize -gt $dirSize ] ; then + if ! [ -e /home/user/MyDocs/wagic/Res/sets/primitives/mtg.txt ]; then + echo "Copying resources on the FAT partition because no file present on FAT partition" cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res + elif [ /home/user/wagic/Res/sets/primitives/mtg.txt -nt /home/user/MyDocs/wagic/Res/sets/primitives/mtg.txt ]; then + echo "Copying resources on the FAT partition because files present on FAT partition are older" + cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res + else + echo "Files already up to date" fi + else + echo "Not enough space on FAT partition" fi fi /opt/wagic/wagic exit 0 + diff --git a/projects/mtg/debian/postinst b/projects/mtg/debian/postinst index 4469a9f5e..97a4452f2 100644 --- a/projects/mtg/debian/postinst +++ b/projects/mtg/debian/postinst @@ -11,12 +11,11 @@ if grep -q /home/user/MyDocs /proc/mounts; then dirSize=`du -s /home/user/wagic/Res | awk '{print $1}'` # Size available on the FAT partition avaSize=`df | grep /dev/mmcblk0p1 | awk '{print $4}'` - if [ /home/user/wagic/Res/sets/primitives/mtg.txt -nt /home/user/MyDocs/wagic/Res/sets/primitives/mtg.txt ]; - then if [ $avaSize -gt $dirSize ] - then - echo "Copying resources on the FAT partition to ease customization" - cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res - fi + if [ $avaSize -gt $dirSize ] ; then + echo "Copying resources on the FAT partition" + cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res + else + echo "Not enough space on FAT partition" fi fi