Skip to content
Snippets Groups Projects
Commit 9a990658 authored by Arthur Pons's avatar Arthur Pons
Browse files

Ajout hook post-update au dépôt des données

Pour refaire le site lorsqu'il y a un commit qui débarque d'ailleurs que
le site.
parent c55a86f1
Branches
No related merge requests found
......@@ -18,7 +18,7 @@ bornespages = ${bornes:${datarepo}/%=public/bornes/%.html}
figures != cut -f1 -d':' figurerules | tr -d ' '
layoutcible = ${layouts:lib/%=public/layouts/%}
all: exec public/articles.tsv figurerules ${figures} public/post_meteo.html public/bornes/index.html public/blog/index.html ${annexrules} ${bornespages} ${pages} ${layoutcible} public/style.css page common ${datarepo}/.git/hooks/post-commit public/bornes/index.html .git/hooks/post-update
all: exec public/articles.tsv figurerules ${figures} public/post_meteo.html public/bornes/index.html public/blog/index.html ${annexrules} ${bornespages} ${pages} ${layoutcible} public/style.css page common ${datarepo}/.git/hooks/post-commit public/bornes/index.html .git/hooks/post-update ${datarepo}/.git/hooks/post-update
test: all; busybox httpd -h public -p 8000
......@@ -40,8 +40,12 @@ include figurerules
${datarepo}/.git/hooks/post-commit : rc/post-commit makefile
sed 's,$$webrepo,${webrepo},' $< > $@; chmod +x $@
${datarepo}/.git/hooks/post-update : rc/post-update makefile
sed 's,$$webrepo,${webrepo},' $< > $@; chmod +x $@
.git/hooks/post-update : rc/post-update makefile
sed 's,$$webrepo,${webrepo},' $< > $@; chmod +x $@
page : lib/full ; touch $@
common : lib/full ; touch $@
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment