summaryrefslogtreecommitdiff
path: root/update-sources
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-30 10:01:38 +0200
committerErich Eckner <git@eckner.net>2021-03-30 10:01:38 +0200
commit3c61534b8f2f022b47913a87001b6a602d79b8c5 (patch)
treebe4e0f2eeed604db038f24490a84cd8e6b613732 /update-sources
parent4c014bb174784b9a380eceb7571bbdd59fddcc7d (diff)
downloadarchlinuxewe-3c61534b8f2f022b47913a87001b6a602d79b8c5.tar.xz
updateSources -> update-sources
Diffstat (limited to 'update-sources')
-rwxr-xr-xupdate-sources19
1 files changed, 19 insertions, 0 deletions
diff --git a/update-sources b/update-sources
new file mode 100755
index 000000000..77bbba31b
--- /dev/null
+++ b/update-sources
@@ -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 \;