2012-10-28 00:06:06 +02:00
|
|
|
SHELL=bash
|
|
|
|
|
|
|
|
manual-update:
|
2012-10-28 00:14:25 +02:00
|
|
|
(branch=$$(git branch | grep \\\* | sed -e s/\*\ //g) ;\
|
|
|
|
git checkout master ;\
|
|
|
|
makeinfo --html "./manuals/ponysay.texinfo" ;\
|
|
|
|
git add "./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:21:54 +02:00
|
|
|
(for file in $$(echo "./pages/ponysay/*"); do \
|
|
|
|
mv $$file $${file}~ \
|
|
|
|
sed -e 's/^<\/head>$$/<link rel="stylesheet" type="text\/css" href="info.css">\\n<\/head>/' \
|
|
|
|
< $${file}~ > $$file; \
|
|
|
|
rm $${file}~; \
|
|
|
|
done \
|
|
|
|
)
|
2012-10-28 00:06:06 +02:00
|
|
|
|