From 2347071ae0aa86e8ec4f4b46d577533d05acf145 Mon Sep 17 00:00:00 2001 From: applications4android Date: Tue, 25 Sep 2012 21:38:00 +0530 Subject: [PATCH] fix for Blondie --- .gitignore | 4 ++++ create_tp.sh | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100755 create_tp.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f908d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.class +*.apk +*.dex +*.ap_ diff --git a/create_tp.sh b/create_tp.sh new file mode 100755 index 0000000..e7a87d8 --- /dev/null +++ b/create_tp.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# COMMENTS: +# Creates the .tp file out of the project directories. +# +# USAGE: +# create_tp.sh [-h] +# -h Print this help and exit +# +# NOTE: +# . This script should be executed from TOT! +# + + +if [ "$1" = "-h" ]; then + head -n6 $0 | sed -e 's/!\/bin\/bash/' -e 's/^\#//' + exit 0 +fi +version=`grep versionName ComicReader/AndroidManifest.xml | sed -e 's/.*=\"//' -e 's/\".*//'` +filename="ComicReader_$version.tp" +echo "Deleting the 'bin' directories ..." +rm -rf 'ComicReader/bin' 'ComicReaderTest/bin' +echo "Creating zip in the name of $filename ..." +"cd" .. +zip -q -r $filename 'ComicReader'