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