Add build script for Linux.
[matthijs/upstream/mobilegtd.git] / build / build.sh
1 #!/bin/sh
2 if [ ! -d src ]; then
3     echo "You should call this script from the top level checkout (e.g., call it as ./build/build.sh)"
4     exit 1
5 fi
6 [ -e "./C:" ] && echo "Move ./C: out of the way first" && exit 1
7 # Move C: out of the source dir (it breaks installation of the resulting
8 # .sis). This directory is created when running MobileGTD using a normal
9 # python installation and pys60-compat.
10 [ -e "src/C:" ] && mv "src/C:" "./C:"
11 ensymble py2sis src --uid=0xA0008CDD --vendor="Martin Mauch" --appname "MobileGTD" --caption="MobileGTD unstable" --caps=ReadUserData+WriteUserData MobileGTD.sis
12 [ -e  "./C:" ] && mv "./C:" "src/C:"