summaryrefslogtreecommitdiff
path: root/git/fetch.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-07 13:30:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-07 13:30:34 +0200
commit78377242a75057a6f82a608c0aac9ea737ba8f53 (patch)
tree641a0836e736ea81a934816239d91209b5b06d93 /git/fetch.sh
parentdc3a3e24bc47777346057dc7a9ff1a760a6759d6 (diff)
Add fetch script
Diffstat (limited to 'git/fetch.sh')
-rwxr-xr-xgit/fetch.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/git/fetch.sh b/git/fetch.sh
new file mode 100755
index 0000000..36f60bd
--- /dev/null
+++ b/git/fetch.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+# Assume this script never run via PATH.
+#
+self=`realpath $0`
+. `dirname $self`/modules
+
+wd=`pwd`
+
+for i in $all_modules; do
+ echo "pull $i" 1>&2
+ cd $i
+ git fetch $*
+ cd $wd
+done