#!/bin/sh # Download and patch sources if [ -e vcmi ]; then exit 0 else svn co http://svn.code.sf.net/p/vcmi/code/trunk/ vcmi && patch -p0 -d vcmi < vcmi-android.diff || exit 1 fi