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 libgsignon-glib-<version>.tar.gz destfolder"
8 echo "NOTE: All the files will be extracted under destfolder (instead of destfolder/libgsignon-glib-<version>)"
13 echo "CURR dir = $currdir"
16 tar -xzvf $1 -C $2 --strip-components 1 && \
18 mkdir -p packaging && \
20 cp -f ../dists/rpm/libgsignon-glib-tizen.spec libgsignon-glib.spec &&
21 cp -f ../dists/rpm/libgsignon-glib-tizen.changes libgsignon-glib.changes;