ponysay/Makefile

24 lines
688 B
Makefile
Raw Normal View History

2012-10-28 00:06:06 +02:00
SHELL=bash
manual-update:
(branch=$$(git branch | grep \\\* | sed -e s/\*\ //g) ;\
git checkout master ;\
(rm -r "./ponysay" || true) ;\
makeinfo --html "./manuals/ponysay.texinfo" ;\
git add -f "./ponysay" ;\
git stash ;\
git checkout $$branch ;\
2012-10-28 00:12:54 +02:00
)
2012-10-28 00:17:11 +02:00
git rm "./pages/ponysay/*"
git stash pop
git mv "./ponysay" "./pages"
2012-10-28 00:26:21 +02:00
(for file in $$(echo "./pages/ponysay/*"); do \
mv $$file $${file}~; \
2012-10-28 00:26:39 +02:00
sed -e 's/^<\/head>$$/<link rel="stylesheet" type="text\/css" href="..\/..\/info.css"><\/head>/' \
2012-10-28 00:26:21 +02:00
< $${file}~ > $$file; \
rm $${file}~; \
git add $${file}; \
done \
2012-10-28 00:21:54 +02:00
)
2012-10-28 00:06:06 +02:00