2011-08-19 09:21:51 +08:00
|
|
|
#! /bin/sh
|
2011-08-19 10:20:41 +08:00
|
|
|
VERSION=$(cat ./VERSION)
|
2011-08-19 09:21:51 +08:00
|
|
|
|
2011-08-19 10:20:41 +08:00
|
|
|
# get the latest mobile-spec
|
|
|
|
git clone git@github.com:phonegap/mobile-spec.git
|
|
|
|
|
|
|
|
# clobber test if it exists
|
|
|
|
if [ -e ./test ]
|
|
|
|
then
|
|
|
|
rm -rf ./test
|
|
|
|
fi
|
|
|
|
|
|
|
|
# generate a working proj
|
2011-08-19 13:40:09 +08:00
|
|
|
./bin/create ./test com.phonegap.test PhoneGapTest
|
2011-08-19 10:20:41 +08:00
|
|
|
|
|
|
|
# kill the default app and replace it w/ mobile-spec
|
|
|
|
rm -rf ./test/assets/www
|
|
|
|
mv ./mobile-spec ./test/assets/www
|
|
|
|
cp ./framework/assets/www/phonegap-$VERSION.js ./test/assets/www/phoengap-$VERSION.js
|
|
|
|
|
|
|
|
# build it, launch it and start logging on stdout
|
2011-08-19 13:40:09 +08:00
|
|
|
cd ./test && ./../bin/debug && ./../bin/log
|