1 # $1 corresponds to libgsignon-glib-<ver>.tar.gz
2 # $2 is the destination folder
3 # NOTE: all the files will be extracted under destination folder (instead of destfolder/libgsignon-glib-<version>)
5 if [ $# -ne 2 -o -z "$1" -o -z "$2" ]; then
6 echo "Invalid arguments supplied"
7 echo "Usage: ./prepare-tizen.sh <arcive> <destination>"
8 echo "NOTE: All the files will be extracted under destfolder (instead of destfolder/libgsignon-glib-<version>)"
14 git rm -r *; rm -rf packaging;
15 tar -xzvf $1 -C $2 --strip-components 1 && \
16 mkdir -p packaging && \
17 cp -f dists/rpm/libgsignon-glib-tizen.spec packaging/libgsignon-glib.spec && \
18 cp -f dists/rpm/libgsignon-glib-tizen.changes packaging/libgsignon-glib.changes && \