]> git.phdru.name Git - git-scripts.git/commitdiff
Pull all repositories in /usr/local/src
authorOleg Broytman <phd@phdru.name>
Mon, 4 Aug 2014 00:05:44 +0000 (04:05 +0400)
committerOleg Broytman <phd@phdru.name>
Mon, 4 Aug 2014 00:05:44 +0000 (04:05 +0400)
pull-usrlocalsrc [new file with mode: 0755]

diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc
new file mode 100755 (executable)
index 0000000..2f4c029
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+prog_dir="`dirname \"$0\"`" &&
+
+cat "$prog_dir"/locate-all.list | grep -F /usr/local/src |
+while true; do
+   read d || exit 0
+   echo "----- $d -----"; cd "$d" && git pull origin || exit 1
+done