@@ -106,32 +106,36 @@ meta-data/section.data: meta-data/annex-f meta-data/networking-section.data bin/
106106
107107dates : meta-data/dates
108108
109- # Generate file with issue number and unix timestamp of last change.
110- meta-data/dates : xml/issue[0-9]* .xml
111- for i in xml/issue[0-9]* .xml ; do \
112- n=" $$ {i#xml/issue}" ; n=" $$ {n%.xml}" ; \
113- grep -s -q " ^$$ n " $@ && test $$ i -ot $@ && continue ; \
114- echo $$ i >&2 ; \
115- git log -1 --pretty=" format:$$ n %ct%n" $$ i ; \
116- done > $@ .new
117- cat $@ $@ .new | sort -n -r | sort -n -k 1 -u > $@ .tmp
118- rm $@ .new
119- $(call update,$@ )
109+ optcmd = $(shell command -v $(1 ) || echo :)
120110
111+ # Generate file with issue number and unix timestamp of last change.
112+ python := $(call optcmd,python)
113+ meta-data/dates : xml/issue[0-9]* .xml bin/make_dates.py
114+ if [ " $( python) " = " :" ]; then \
115+ for i in xml/issue[0-9]* .xml ; do \
116+ n=" $$ {i#xml/issue}" ; n=" $$ {n%.xml}" ; \
117+ grep -s -q " ^$$ n " $@ && test $$ i -ot $@ && continue ; \
118+ echo $$ i >&2 ; \
119+ git log -1 --pretty=" format:$$ n %ct%n" $$ i ; \
120+ done > $@ .new; \
121+ cat $@ $@ .new | sort -n -r | sort -n -k 1 -u > $@ .tmp; \
122+ rm $@ .new; \
123+ $(call update,$@ ) ; \
124+ else \
125+ git whatchanged --no-show-signature --pretty=%ct | $(python ) bin/make_dates.py > $@ ; \
126+ fi
121127
122128new-papers :
123129 rm -f meta-data/index.json meta-data/paper_titles.txt
124130 $(MAKE ) meta-data/paper_titles.txt
125131
126- optcmd = $(shell command -v $(1 ) || echo :)
127-
128- # If python is not installed then create an empty meta-data/paper_titles.txt
132+ # If curl is not installed then create an empty meta-data/paper_titles.txt
129133meta-data/index.json :
130134 $(call optcmd,curl) https://wg21.link/index.json > $@
131135
132136# If python is not installed then create an empty meta-data/paper_titles.txt
133137meta-data/paper_titles.txt : | meta-data/index.json
134- $(call optcmd, python) bin/make_paper_titles.py $| > $@
138+ $(python ) bin/make_paper_titles.py $| > $@
135139
136140.PRECIOUS : meta-data/dates
137141.PRECIOUS : meta-data/paper_titles.txt
0 commit comments