Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/statistics/clone-all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'statistics/clone-all.sh')
-rw-r--r--statistics/clone-all.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/statistics/clone-all.sh b/statistics/clone-all.sh
new file mode 100644
index 0000000..1cc0556
--- /dev/null
+++ b/statistics/clone-all.sh
@@ -0,0 +1,17 @@
+for LINE in `cat ./activities-data.txt`
+do
+ ACTIVITY=`echo $LINE | awk -F '|' '{printf("%s",$1)}'`
+ REPO=`echo $LINE | awk -F '|' '{printf("%s",$2)}'`
+ echo $ACTIVITY
+ if [ -d $ACTIVITY/mainline/.git/ ]; then
+ cd $ACTIVITY/mainline
+ git pull
+ cd ..
+ else
+ echo $ACTIVITY
+ mkdir $ACTIVITY
+ cd $ACTIVITY
+ git clone $REPO
+ fi
+ cd ..
+done