add new pull command to update git
Signed-off-by: Joel Fernandes <joel@linuxinternals.org>
diff --git a/androdeb b/androdeb
index 474e61f..c2adcba 100755
--- a/androdeb
+++ b/androdeb
@@ -27,6 +27,7 @@
prepare) PREPARE=1; shift || true; ;;
shell) ASHELL=1; shift || true; ;;
remove) REMOVE=1; shift || true; ;;
+ pull) PULL=1; shift || true; ;;
--archive) TARF=$2; shift || true; shift || true; ;;
--tracers) source $spath/packages/tracers; shift || true; ;;
--compilers) source $spath/packages/compilers; shift || true; ;;
@@ -44,6 +45,14 @@
esac
done
+if [ ! -z "$PULL" ]; then
+ echo "Updating androdeb by git pull"
+ cd $spath
+ git pull
+ echo "Done."
+ exit 0
+fi
+
if [ ! -z "$PREPARE" ] && [ -z "$DOWNLOAD" ] && [ -z "$TARF" ] && [ -z "$PACKAGES" ] && [ -z "$KERNELSRC" ]; then
echo "Need to specifify something to prepare, or try: ./andrdeb prepare --download"; usage; fi