summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2013-04-14 01:57:18 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2013-04-14 01:57:18 -0700
commit44f9da3c67d5bc969e9af7d12f66369d82f88a17 (patch)
treecf86a09e504bd3541be9de6ca60bcb9ee41d30a5
parente0e25f65330bbc45d7a8cfba78068284e270c283 (diff)
moin2iki: initial instructions
-rw-r--r--moin2iki.mdwn23
1 files changed, 23 insertions, 0 deletions
diff --git a/moin2iki.mdwn b/moin2iki.mdwn
new file mode 100644
index 0000000..2004d32
--- /dev/null
+++ b/moin2iki.mdwn
@@ -0,0 +1,23 @@
+# Migration
+
+ PROJECT=dri # replace 'dri' with something else, here
+ echo '$conf->{"url"} = "http://'${PROJECT}'.freedesktop.org/wiki/";' > /etc/ikiwiki/piny/${PROJECT}.setup.pl # Some projects have oddball URLs, such as xorg. Careful.
+ echo Wiki for the ${PROJECT} project | newrepo ${PROJECT} # description for cgit/gitweb
+ git clone /srv/ikiwiki/git/${PROJECT}.git ~/${PROJECT}
+ cd /srv/${PROJECT}.freedesktop.org/moin
+ /usr/src/moin2iki/moin2git | ( cd ~/${PROJECT}/ && git fast-import ) # or -p PageName to grab one page at a time, which is probably wiser for spam-ridden Moins.
+ # Sometimes pages get missed; you can manually moint2git -p PageName them afterwards and then merge the resulting objects in.
+ /usr/src/moin2iki/moin2mdwn -r ~/${PROJECT} # or -p PageName again
+ # May also need to mkdir data/pages-bad; mv data/pages/FindPage data/pages-bad/ and try again because moin2mdwn hates that particular one and possibly others
+ cd ~/${PROJECT}
+ git add *.mdwn
+ for file in *; do name=$(basename $file .moin); test -f $name.mdwn && git rm $name.moin; done
+ git commit -m 'moin2iki: Mass conversion with moin2mdwn tool' .
+ git mv FrontPage.mdwn index.mdwn
+ git commit -m 'moin2iki: Moving FrontPage.mdwn to index.mdwn'
+ git push origin master
+ ln -s /srv/wiki.freedesktop.org/${PROJECT} /srv/${PROJECT}.freedesktop.org/www/wiki
+ ln -s /srv/ikiwiki/git/${PROJECT}.git /srv/${PROJECT}.freedesktop.org/git
+ perl -pe 's/(.*MoinWSGI.*)/#\1/' /etc/apache2/sites-enabled/500-${PROJECT}.freedesktop.org | sponge /etc/apache2/sites-enabled/500-${PROJECT}.freedesktop.org
+ /etc/init.d/apache2 reload
+