#!/bin/sh

PYTHON=python2.5
ENSYMBLE=$HOME/bin/ensymble.py
VERSION=0.4.0

# Create series60-remote.sis

mkdir tmp

cp mobile.py tmp/default.py
cp ../pc/devices/status_numbers.py ./tmp/status_numbers.py

$PYTHON $ENSYMBLE py2sis --appname="Series60 - Remote" --version=$VERSION --lang=EN --shortcaption="S60-Remote" --caps=LocalServices+ReadUserData+WriteUserData+WriteUserData+NetworkServices+UserEnvironment --icon="icon.svg" --verbose ./tmp series60-remote.sis

rm -rf tmp

# Download PyS60 packages from Sourceforge

RELEASE=1_4_5

if [ ! -f PythonForS60_${RELEASE}_3rdEd.sis ];
then
   echo "Downloading PyS60 $RELEASE from Sourceforge..."
   wget http://sourceforge.net/projects/pys60/files/pys60/1.4.5/PythonForS60_${RELEASE}_3rdEd.sis/download > /dev/null 2>&1
fi

#wget http://sourceforge.net/projects/pys60/files/pys60/1.4.5/PythonForS60_${RELEASE}_2ndEdFP3.SIS/download
#wget http://sourceforge.net/projects/pys60/files/pys60/1.4.5/PythonForS60_${RELEASE}_2ndEdFP2.SIS/download
#wget http://sourceforge.net/projects/pys60/files/pys60/1.4.5/PythonForS60_${RELEASE}_2ndEd.SIS/download
