summaryrefslogtreecommitdiff
path: root/updateSources
blob: 77bbba31b72363482549ac251b281d621beaf844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 \;