summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/prepare-tizen.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/prepare-tizen.sh b/tools/prepare-tizen.sh
index c94ad1c..1ff09e2 100755
--- a/tools/prepare-tizen.sh
+++ b/tools/prepare-tizen.sh
@@ -4,21 +4,17 @@
if [ $# -ne 2 -o -z "$1" -o -z "$2" ]; then
echo "Invalid arguments supplied"
- echo "Usage: ./prepare-tizen.sh gsignond-<version>.tar.gz destfolder"
+ echo "Usage: ./prepare-tizen.sh <archive> <destination>"
echo "NOTE: All the files will be extracted under destfolder (instead of destfolder/gsignond-<version>)"
exit
fi
-currdir=`pwd`;
-echo "CURR dir = $currdir"
-
mkdir -p $2 && \
cd $2 && \
git rm -r *; rm -rf packaging;
-tar -xzvf $currdir/$1 -C $2 --strip-components 1 && \
+tar -xzvf $1 -C $2 --strip-components 1 && \
mkdir -p packaging && \
cp -f dists/rpm/gsignond-tizen.spec packaging/gsignond.spec && \
cp -f dists/rpm/gsignond-tizen.changes packaging/gsignond.changes && \
cp -f dists/rpm/gsignond-tizen.manifest packaging/gsignond.manifest && \
-cp $currdir/.gitignore $2/ && \
git add -f *;