generate changelogs

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-11 21:56:19 +02:00
parent 0b9e019a0f
commit fb3ad8b816
1 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@ else
IKIWIKI=ikiwiki IKIWIKI=ikiwiki
endif endif
push: output luadoc push: output luadoc changelogs
rsync -Pavz --exclude src html/ awesome.naquadah.org:/var/www/awesome.naquadah.org/ rsync -Pavz --exclude src html/ awesome.naquadah.org:/var/www/awesome.naquadah.org/
rsync -Pavz src/build/luadoc/ awesome.naquadah.org:/var/www/awesome.naquadah.org/apidoc rsync -Pavz src/build/luadoc/ awesome.naquadah.org:/var/www/awesome.naquadah.org/apidoc
@ -17,3 +17,11 @@ luadoc:
clean: clean:
rm -rf .ikiwiki html rm -rf .ikiwiki html
changelogs:
test -d html/changelogs/short || mkdir -p html/changelogs/short
git --git-dir=src/.git tag | grep -v rc | sort -n | \
(while read v; do \
test -z "$$pv" && pv="`git --git-dir=src/.git rev-list HEAD | tail -n1`" ; \
git --git-dir=src/.git shortlog $$pv..$$v > html/changelogs/short/$$v ; \
git --git-dir=src/.git log $$pv..$$v > html/changelogs/$$v ; \
pv=$$v; done)