diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-22 16:22:38 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-22 16:22:38 +0200 |
| commit | 9fd9c75ecdfdcbcadd82c5b757ea94f8b00fabb7 (patch) | |
| tree | 81528ee12ac8884af0c11ac1f2bcec2489f095b2 /Makefile | |
| parent | ce5059939a5ec3ce7e898d5cb928be666ef68828 (diff) | |
| download | alpine-mksite-9fd9c75ecdfdcbcadd82c5b757ea94f8b00fabb7.tar.bz2 alpine-mksite-9fd9c75ecdfdcbcadd82c5b757ea94f8b00fabb7.tar.xz | |
fetch last git commits from atom feed
It might be nice to have a general RSS atom feed importer since it can
be reused for bugs and other things
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -6,9 +6,11 @@ pages := $(patsubst %.md,$(out)/%.html, $(md_sources)) static_sources := $(shell find _static -type f) static_out := $(patsubst _static/%,$(out)/%,$(static_sources)) +git_atom_url := http://git.alpinelinux.org/cgit/aports/atom + all: $(pages) $(static_out) -$(out)/index.html: release.yaml last5.yaml +$(out)/index.html: release.yaml git-commits.yaml $(out)/%.html: %.md _default.template.html mkdir -p $(dir $@) @@ -34,4 +36,13 @@ release.yaml: latest-releases.yaml update-release: rm -f latest-releases.yaml - $(MAKE) release.yaml + $(MAKE) + +git-commits.yaml: _scripts/atom-to-yaml.xsl + curl $(git_atom_url) | xsltproc _scripts/atom-to-yaml.xsl - > $@.tmp + mv $@.tmp $@ + +update-git-commits: + rm -f git-commits.yaml + $(MAKE) + |
