[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master ad89350 3/3: Refactor 'git submodule update'
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master ad89350 3/3: Refactor 'git submodule update' for parallel execution and simplicity |
Date: |
Fri, 13 Apr 2018 16:50:59 -0400 (EDT) |
branch: master
commit ad8935088005739eaefcc810c3dc46fff0261cb8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Refactor 'git submodule update' for parallel execution and simplicity
See:
https://lists.nongnu.org/archive/html/lmi/2018-04/msg00066.html
---
install_wx.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/install_wx.sh b/install_wx.sh
index cd3d8eb..8922ac3 100755
--- a/install_wx.sh
+++ b/install_wx.sh
@@ -74,10 +74,10 @@ do
# from a local mirror when wxWidgets itself is being cloned from such
# a mirror, avoiding (slow and possibly unreliable) network access.
git config submodule.${subpath}.url ${wx_git_url%/*}/${suburl##*/}
-
- git submodule update --init "$subpath"
done
+git submodule update --recursive --jobs $(nproc) --init
+
[ "$wx_skip_clean" = 1 ] || git clean -dfx
# This incidentally removes wxPdfDoc, but it's a good idea to rebuild that