From: Mischa POSLAWSKY Date: Sun, 4 Jun 2017 21:53:35 +0000 (+0200) Subject: tools: output git action during make X-Git-Tag: v1.11~61 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/e88374a902f4fd5d20cb856175bfdc9c533ec6a9 tools: output git action during make Either clone or pull with matching echo, quiet execution. --- diff --git a/Makefile b/Makefile index 8ff1638..fb804a8 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,9 @@ download: data/DerivedAge.txt data/rfc1345.txt data/xorg-compose data/countryInf # atomically create file by command cmdsave = @echo $1 $2 \>$@; $1 $2 | sponge $@ # download git checkout -gitsave = @echo git pull or clone $@; \ - [ -r $@/.git ] && cd $@ && git pull --ff-only || true; \ - [ -e $@ ] || git clone "$1" $@ +gitsave = @if cd $@ 2>/dev/null; \ + then echo git pull $@; git pull -q --ff-only || true; \ + else echo git clone $1 $@; git clone -q --progress $1 $@; fi sitemap.xml: tools/mksitemap $(call cmdsave,$<)