update-common: better filename handling
This commit is contained in:
parent
1c26934d98
commit
1706e69d84
|
@ -52,7 +52,7 @@ build-nim: | sanity-checks
|
|||
#- allows parallel building with the '+' prefix
|
||||
#- rebuilds the Nim compiler if the corresponding submodule is updated
|
||||
update-common: | sanity-checks
|
||||
git submodule foreach --quiet 'git ls-files --exclude-standard --recurse-submodules | while read F; do rm -rf "$$F"; done'
|
||||
git submodule foreach --quiet 'git ls-files --exclude-standard --recurse-submodules -z | while read -r -d "" F; do [[ "$F" =~ ^\..*$$ ]] || rm -rf "$$F"; done'
|
||||
git submodule update --init --recursive || true
|
||||
# changing URLs in a submodule's submodule means we have to sync and update twice
|
||||
git submodule sync --quiet --recursive
|
||||
|
|
Loading…
Reference in New Issue