diff options
author | Erich Eckner <git@eckner.net> | 2020-02-11 15:03:35 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-11 15:03:35 +0100 |
commit | 0e2792533669e59c7134d976e38109d639135a81 (patch) | |
tree | 295619ae90113682b7e4259756436e6fe11e524a /archPackagesUpdate | |
parent | 21f2a6698b26a5d55579435f811334d17d6a6263 (diff) | |
download | archlinuxewe-0e2792533669e59c7134d976e38109d639135a81.tar.xz |
update-submodule neu
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 313664360..d1636341d 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -263,6 +263,7 @@ unset verss unset repos if [ -f '.gitmodules' ]; then + >&2 printf 'updating submodules ...' sed -n ' /^\s*path = /{ N @@ -271,35 +272,13 @@ if [ -f '.gitmodules' ]; then s,ssh://aur@aur.archlinux.org/,https://aur.archlinux.org/, p } - ' '.gitmodules' | \ - while read -r path url; do - if [ -n "$(ls -A "${path}")" ]; then - git submodule update -- "${path}" - continue - fi - mkdir -p "${path}" - >&2 printf 'submodule %s: ' "${path}" - if [ -n "${submoduleDir}" ]; then - upstream="${submoduleDir}/${path}" - >&2 printf ' cached' - if [ ! -d "${upstream}" ]; then - >&2 printf ', cloning ...' - git clone -q "${url}" "${upstream}" - >&2 printf ' done' - fi - else - upstream="${pkgSrcDir}/${path}" - >&2 printf ' true submodule' - fi - >&2 printf ', pulling ...' - git -C "${upstream}" pull -q --ff-only - >&2 printf ' done' - >&2 printf ', cloning ...' - git clone -q "${upstream}" "${path}" - >&2 printf ' done.\n' - done + ' '.gitmodules' \ + | parallel -j0 "${pkgSrcDir}/update-submodule" "${pkgSrcDir}" "${submoduleDir}" + >&2 printf ' done.\n' fi +exit 42 + if ${aufRechenknecht}; then # collect packages |