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

index fe45be4..5e00ac7 100755 (executable)
@@ -13,10 +13,12 @@ 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/libgsignon-glib-tizen.spec libgsignon-glib.spec &&
-cp -f ../dists/rpm/libgsignon-glib-tizen.changes libgsignon-glib.changes;
+cp -f ../dists/rpm/libgsignon-glib-tizen.spec libgsignon-glib.spec && \
+cp -f ../dists/rpm/libgsignon-glib-tizen.changes libgsignon-glib.changes && \
+cd .. && git add *;