Emacsg: make output more readable

This commit is contained in:
Jonas Bernoulli 2016-12-01 15:52:21 +01:00
parent c5fcb59c66
commit bfd6b10a27
2 changed files with 14 additions and 7 deletions

View File

@ -45,6 +45,9 @@ lib/%: .FORCE
--eval '(borg-build "$(@F)")' $(SUPPRESS_WARNINGS)
bootstrap:
git submodule init
bin/borg-bootstrap
make build
@printf "\n=== Running 'git submodule init' ===\n\n"
@git submodule init
@printf "\n=== Running 'bin/borg-bootstrap' ===\n"
@bin/borg-bootstrap
@printf "\n=== Running 'make build' ===\n\n"
@make build

View File

@ -42,12 +42,16 @@ push_remote=$(git config -f .gitmodules borg.pushDefault)
git submodule--helper list |
while read mode sha1 stage path
do
name=$(git submodule--helper name "$path")
url=$(git config -f .gitmodules submodule."$name".url)
if test -e "$path" && ! test -e "$path"/.git
then
git submodule--helper clone --name "$name" --path "$path" --url "$url"
name=$(git submodule--helper name "$path")
echo "\n--- [$name] ---\n"
git submodule--helper clone \
--name "$name" \
--path "$path" \
--url $(git config -f .gitmodules submodule."$name".url)
git config -f .gitmodules --get-all submodule."$name".remote |
while read remote remote_url