X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/60c22258763ec046ef91af80e2abcb57b0c29033..94fea8c0e6ba8cea67d69dd0e49142811bba1611:/Makefile diff --git a/Makefile b/Makefile index 8ff1638..85fc990 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,11 @@ download: data/DerivedAge.txt data/rfc1345.txt data/xorg-compose data/countryInf .PHONY: download # atomically create file by command -cmdsave = @echo $1 $2 \>$@; $1 $2 | sponge $@ +cmdsave = @echo $1 $2 \>$@; mispipe '$1 $2' 'ifne 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,$<)