blob: 7c4f4e20ef91018b7ebd8bd131fa066ca0ee6ba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $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 && \
cd $2 && \
git rm -r * && \
tar -xzvf $currdir/$1 -C $2 --strip-components 1 && \
mkdir -p packaging && \
cd packaging && \
cp -f ../dists/rpm/gsignond-tizen.spec gsignond.spec && \
cp -f ../dists/rpm/gsignond-tizen.changes gsignond.changes && \
cd .. && git add *;
|