added rule to generate changelog since last tag

master
melvin 2013-07-27 17:37:50 +08:00
parent 827ed4d3a2
commit 1822c73cf9
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ cards/new.txt: cards/existing_tip.txt
mv cards/new_$(LAST).txt $@
make wiki/UpcomingCards.wiki
changelog:
$(eval LAST := $(shell hg tags | grep "^[[:digit:]]" | head -1 | cut -d' ' -f1))
hg log | awk '{print}; /Added tag ${LAST}/ {exit 1}' > changelog
cards/new_%.txt: cards/existing_tip.txt cards/existing_%.txt
join -v1 -t"|" <(sort $(word 1,$^)) <(sort $(word 2,$^)) > $@