Maemo application cleanup and final merge

This commit is contained in:
Xawotihs@gmail.com
2012-01-22 10:39:16 +00:00
parent 595f0b5690
commit 14962385b6
7 changed files with 55 additions and 60 deletions

View File

@@ -1,2 +0,0 @@
/home/user/MyDocs/wagic/Res/
/home/user/wagic/Res/

View File

@@ -1,6 +1,6 @@
wagic (0.16.0maemo0) unstable; urgency=low
wagic (0.17.1maemo0) unstable; urgency=low
* Fixed Phonon sound problem
* Improved upgrade script
* Wagic 0.16.0
-- Xawotihs <xawotihs@gmail.com> Mon, 18 Jul 2011 14:11:42 +0200
* Merged UI with Android and Meego versions
* Resources are now downloaded seperately
* Wagic 0.17.1
-- Xawotihs <xawotihs@gmail.com> Mon, 21 Jan 2012 14:11:42 +0200

View File

@@ -1,28 +0,0 @@
#!/bin/sh -e
if grep -q /home/user/MyDocs /proc/mounts; then
# FAT partition mounted
mkdir -p /home/user/MyDocs/wagic
mkdir -p /home/user/MyDocs/wagic/Res
# Size needed on the FAT partition
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 [ $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

View File

@@ -1,24 +0,0 @@
#!/bin/sh -e
chmod a+x /opt/wagic/wagic
chmod a+x /opt/wagic/launcher
chmod -R a+rw /home/user/wagic
if grep -q /home/user/MyDocs /proc/mounts; then
# FAT partition mounted
mkdir -p /home/user/MyDocs/wagic
mkdir -p /home/user/MyDocs/wagic/Res
# Size needed on the FAT partition
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 [ $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
gtk-update-icon-cache -f /usr/share/icons/hicolor
exit 0