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 ;\
|
2013-04-05 09:57:57 +02:00
|
|
|
(rm -r "./ponysay" || true) ;\
|
2012-10-28 00:14:25 +02:00
|
|
|
makeinfo --html "./manuals/ponysay.texinfo" ;\
|
2013-04-05 09:57:57 +02:00
|
|
|
git add -f "./ponysay" ;\
|
2012-10-28 00:14:25 +02:00
|
|
|
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
|
|
|
|