git.iko.soy/typeable/pandoc
on master help sign in
Makefile - make .msi download targets more robust.

Now they should be insensitive to changes in the order of the builds on appveyor.

commitf66a6704f9d40764242a1e005ed7b6e147df7f55 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 7 Oct 2018, 11:16 (8 years ago) parentfd9d08f
1 file changed+2−2
Makefile+2−2
Makefile+2−2
@@ -85,11 +85,11 @@ pandoc-$(version)-windows-%.msi: pandoc-windows-%.msi
8585.INTERMEDIATE: pandoc-windows-i386.msi pandoc-windows-x86_64.msi
8686
8787pandoc-windows-i386.msi:
88− JOBID=$(shell curl 'https://ci.appveyor.com/api/projects/jgm/pandoc' | jq -r '.build.jobs[1].jobId') && \
88+ JOBID=$(shell curl https://ci.appveyor.com/api/projects/jgm/pandoc | jq '.build.jobs[]| select(.name|test("i386")) | .jobId') && \
8989 wget "https://ci.appveyor.com/api/buildjobs/$$JOBID/artifacts/windows%2F$@" -O $@
9090
9191pandoc-windows-x86_64.msi:
92− JOBID=$(shell curl 'https://ci.appveyor.com/api/projects/jgm/pandoc' | jq -r '.build.jobs[0].jobId') && \
92+ JOBID=$(shell curl https://ci.appveyor.com/api/projects/jgm/pandoc | jq '.build.jobs[]| select(.name|test("x86_64")) | .jobId') && \
9393 wget "https://ci.appveyor.com/api/buildjobs/$$JOBID/artifacts/windows%2F$@" -O $@
9494
9595man/pandoc.1: MANUAL.txt man/pandoc.1.template