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 \
|
2012-10-28 00:22:59 +02:00
|
|
|
mv $$file $${file}~; \
|
2012-10-28 00:23:42 +02:00
|
|
|
sed -e 's/^<\/head>$$/<link rel="stylesheet" type="text\/css" href="info.css"><\/head>/' \
|
2012-10-28 00:21:54 +02:00
|
|
|
< $${file}~ > $$file; \
|
|
|
|
rm $${file}~; \
|
2012-10-28 00:22:59 +02:00
|
|
|
git add $${file}; \
|
2012-10-28 00:21:54 +02:00
|
|
|
done \
|
|
|
|
)
|
2012-10-28 00:06:06 +02:00
|
|
|
|