summaryrefslogtreecommitdiff
path: root/updateSources
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-02-17 10:14:58 +0100
committerErich Eckner <git@eckner.net>2021-02-17 10:14:58 +0100
commit6511cfbcc1b6d80b6ebb4d5b79ace7088d8fd6fd (patch)
treea601200b8933fc73f937287aa22390f6963b3606 /updateSources
parent0e700f31788332d5808471207ea65d696329a69a (diff)
downloadarchlinuxewe.git.save-6511cfbcc1b6d80b6ebb4d5b79ace7088d8fd6fd.tar.xz
updateSources neu
Diffstat (limited to 'updateSources')
-rwxr-xr-xupdateSources19
1 files changed, 19 insertions, 0 deletions
diff --git a/updateSources b/updateSources
new file mode 100755
index 00000000..77bbba31
--- /dev/null
+++ b/updateSources
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+srcDir="${HOME}/packageSources"
+
+[ -d "${srcDir}" ] || exit 0
+
+find "${srcDir}" \
+ -mindepth 2 \
+ -maxdepth 2 \
+ -name HEAD \
+ -printf '%h\n' \
+| parallel -j 0 -l 1 git -C {} fetch --all -p
+
+find "${srcDir}" \
+ -mindepth 2 \
+ -maxdepth 2 \
+ -type d \
+ -name .svn \
+ -execdir svn update \;