| 1 | export PERL5LIB=$(CURDIR)/../../.. |
| 2 | ikiwiki = $(CURDIR)/../../../ikiwiki.in |
| 3 | |
| 4 | all: |
| 5 | rm -fr git html |
| 6 | mkdir -p git |
| 7 | echo "/doc/.ikiwiki/" > git/.gitignore |
| 8 | mkdir -p git/doc |
| 9 | mkdir -p git/doc/writable |
| 10 | cd git && git init |
| 11 | cp index.mdwn git/doc/index.mdwn |
| 12 | cp -a $(CURDIR)/../../../doc/wikiicons git/doc/ |
| 13 | cp -a $(CURDIR)/../../../doc/recentchanges.mdwn git/doc/ |
| 14 | echo "This is the first test page" > git/doc/writable/one.mdwn |
| 15 | echo "This is the second test page" > git/doc/writable/two.mdwn |
| 16 | cd git && git add . && git commit -m 'Initial commit' |
| 17 | $(ikiwiki) --setup ikiwiki.setup |
| 18 | echo "This is the first test page, it was first" > git/doc/writable/one.mdwn |
| 19 | cd git && git add . && git commit -m 'First web commit' |
| 20 | $(ikiwiki) --setup ikiwiki.setup |
| 21 | echo "This is the second test page, it came second" > git/doc/writable/two.mdwn |
| 22 | cd git && git add . && git commit -m 'Second web commit' |
| 23 | $(ikiwiki) --setup ikiwiki.setup |
| 24 | cd git && git mv doc/writable/one.mdwn doc/one.mdwn |
| 25 | cd git && git mv doc/writable/two.mdwn two.mdwn |
| 26 | cd git && git commit -m Rename |
| 27 | $(ikiwiki) --setup ikiwiki.setup |
| 28 | w3m html/index.html |