blob: d4329b2a8e668b05679181b77f60315c51b30a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
|