Removes the stale files if deleted from the git repo
authorImran Zaman <imran.zaman@linux.intel.com>
Mon, 24 Jun 2013 13:52:51 +0000 (16:52 +0300)
committerImran Zaman <imran.zaman@linux.intel.com>
Mon, 24 Jun 2013 13:52:51 +0000 (16:52 +0300)
tools/prepare-tizen.sh

index d4329b2..d1f397a 100755 (executable)
@@ -13,10 +13,11 @@ currdir = `pwd`;
 echo "CURR dir = $currdir"
 
 mkdir -p $2 && \
-tar -xzvf $1 -C $2 --strip-components 1 && \
 cd $2 && \
+git rm -r * && \
+tar -xzvf $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;
-
+cp -f ../dists/rpm/gsignond-tizen.spec gsignond.spec && \
+cp -f ../dists/rpm/gsignond-tizen.changes gsignond.changes && \
+cd .. && git add *;