Release 1.0.3
[platform/upstream/gsignond.git] / tools / prepare-tizen.sh
1 # $1 corresponds to gsignond-<ver>.tar.gz 
2 # $2 is the destination folder
3 # NOTE: all the files will be extracted under destination folder (instead of destfolder/gsignond-<version>)
4
5 if [ $# -ne 2 -o -z "$1" -o -z "$2" ]; then
6     echo "Invalid arguments supplied"
7     echo "Usage: ./prepare-tizen.sh <archive> <destination>"
8     echo "NOTE: All the files will be extracted under destfolder (instead of destfolder/gsignond-<version>)"
9     exit
10 fi
11
12 mkdir -p $2 && \
13 cd $2 && \
14 git rm -f -r *;
15 tar -xzvf $1 -C $2 --strip-components 1 && \
16 git add -f *;