aboutsummaryrefslogtreecommitdiff
path: root/t/manual/git_revert/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 't/manual/git_revert/Makefile')
-rw-r--r--t/manual/git_revert/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/manual/git_revert/Makefile b/t/manual/git_revert/Makefile
new file mode 100644
index 000000000..9e2220d11
--- /dev/null
+++ b/t/manual/git_revert/Makefile
@@ -0,0 +1,26 @@
+export PERL5LIB=$(CURDIR)/../../..
+ikiwiki = $(CURDIR)/../../../ikiwiki.in
+
+all:
+ rm -fr git html
+ mkdir -p git
+ echo "/doc/.ikiwiki/" > git/.gitignore
+ mkdir -p git/doc
+ mkdir -p git/doc/writable
+ cd git && git init
+ cp index.mdwn git/doc/index.mdwn
+ echo "This is the first test page" > git/doc/writable/one.mdwn
+ echo "This is the second test page" > git/doc/writable/two.mdwn
+ cd git && git add doc && git commit -m 'Initial commit'
+ $(ikiwiki) --setup ikiwiki.setup
+ echo "This is the first test page, it was first" > git/doc/writable/one.mdwn
+ cd git && git add doc && git commit -m 'First web commit'
+ $(ikiwiki) --setup ikiwiki.setup
+ echo "This is the second test page, it came second" > git/doc/writable/two.mdwn
+ cd git && git add doc && git commit -m 'Second web commit'
+ $(ikiwiki) --setup ikiwiki.setup
+ cd git && git mv doc/writable/one.mdwn doc/one.mdwn
+ cd git && git mv doc/writable/two.mdwn two.mdwn
+ cd git && git commit -m Rename
+ $(ikiwiki) --setup ikiwiki.setup
+ w3m html/index.html