diff options
author | Imran Zaman <imran.zaman@intel.com> | 2013-06-17 18:05:14 +0300 |
---|---|---|
committer | Imran Zaman <imran.zaman@intel.com> | 2013-06-17 18:05:14 +0300 |
commit | 295c3b3222fbf7f414c5802c6af86bedadbc009a (patch) | |
tree | d7c03f9b752a4b5ddcaffa2fb18e587f27872f8f /tools/prepare-tizen.sh | |
parent | 06161b99c5bfa1244649647ed0d66d7800f93c57 (diff) | |
download | gsignond-295c3b3222fbf7f414c5802c6af86bedadbc009a.tar.gz gsignond-295c3b3222fbf7f414c5802c6af86bedadbc009a.tar.bz2 gsignond-295c3b3222fbf7f414c5802c6af86bedadbc009a.zip |
updated distribution specific changessubmit/tizen/20130617.151432accepted/tizen/20130617.174626
Diffstat (limited to 'tools/prepare-tizen.sh')
-rwxr-xr-x | tools/prepare-tizen.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/prepare-tizen.sh b/tools/prepare-tizen.sh new file mode 100755 index 0000000..d4329b2 --- /dev/null +++ b/tools/prepare-tizen.sh @@ -0,0 +1,22 @@ +# $1 corresponds to gsignond-<ver>.tar.gz +# $2 is the destination folder +# NOTE: all the files will be extracted under destination folder (instead of destfolder/gsignond-<version>) + +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 "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 && \ +tar -xzvf $1 -C $2 --strip-components 1 && \ +cd $2 && \ +mkdir -p packaging && \ +cd packaging && \ +cp -f ../dists/rpm/gsignond-tizen.spec gsignond.spec && +cp -f ../dists/rpm/gsignond-tizen.changes gsignond.changes; + |