Go to file
Joey Hess eca2dbe67f po: Add support for mo files in underlays
In order to support translated basewiki and other underlays, we need
support for mo files in underlays.

The code did not allow this before, because if a mo file was in an
underlay, then it might try to update it, and its pot, and write to the
underlay, which is guaranteed to either fail due to permissions, or be
undesirable.

To fix, my approach is to just detect if a mo or pot file that is about to
be updated is in an underlay, and skip updating it. This seems to work
well:

- If the mo is out of date in the underlay, it won't get updated, but this
  would probably be due to a problem in the underlay, or more likely,
  the wiki is being rebuilt and so it *thinks* the mo is out of date,
  but it's really not (and it would be a waste of time to rebuild it
  anyway).
- If a page from the basewiki is edited, it is saved to the srcdir,
  which causes generation of an updated mo and pot also in the srcdir;
  the underlay stops being used for that page, and everything seems
  to work.

Note that I am not including an underlay search directory for pot files.
They *seem* to be unnecessary for the underlay, since the mo files
in there never need to be updated.
2009-07-21 11:31:51 +02:00
Bundle remove dup 2009-04-06 13:34:31 -04:00
IkiWiki po: Add support for mo files in underlays 2009-07-21 11:31:51 +02:00
cpan enhancesments for shared hosting 2008-05-05 14:51:26 -04:00
debian update 2009-07-20 08:09:27 +02:00
doc po: Add support for mo files in underlays 2009-07-21 11:31:51 +02:00
plugins function injection overhaul 2008-10-21 17:57:19 -04:00
po Danish translation update 2009-07-20 12:05:48 +02:00
t Merge branch 'master' into po 2009-07-19 12:36:01 +02:00
templates Merge commit 'upstream/master' into pub/po 2009-06-06 14:03:40 +02:00
underlays Merge branch 'master' into po 2009-05-19 13:07:47 -04:00
.gitignore update ignore 2008-07-26 23:04:54 -04:00
.perlcriticrc fix a common case typo 2008-08-12 15:48:44 -04:00
CHANGELOG * Work on firming up the plugin interface: 2006-09-09 22:50:27 +00:00
IkiWiki.pm Merge branch 'master' into po 2009-07-19 12:36:01 +02:00
Makefile.PL build translated underlays for use with non-English wikis 2009-07-20 07:20:13 +02:00
NEWS * Work on firming up the plugin interface: 2006-09-09 22:50:27 +00:00
README reformat 2008-09-09 20:24:59 -04:00
auto-blog.setup add blogspam to auto-blog 2009-01-16 22:42:30 -05:00
auto.setup remove hardlink settings from auto.setup files 2009-01-12 20:04:01 -05:00
docwiki.setup set underlaydirbase in docwiki.setup 2009-05-19 13:57:47 -04:00
gitremotes add Bremner's ikimailbox repo to list 2009-05-21 14:35:04 -04:00
ikiwiki-makerepo ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant directories with some broken perl versions. 2009-05-05 14:15:28 -04:00
ikiwiki-mass-rebuild fix two build bugs 2008-06-13 13:05:44 -04:00
ikiwiki-transition ikiwiki-transition: deduplinks was broken and threw away all metadata stored by plugins in the index. Fix this bug. 2009-05-22 13:09:11 -04:00
ikiwiki-update-wikilist add new wiki to wikilist 2008-07-27 16:01:29 -04:00
ikiwiki-w3m.cgi * Support a w3mmode, which lets w3m run ikiwiki using its local CGI 2006-07-07 21:00:48 +00:00
ikiwiki.in remove -T from ikiwiki.in, add back if NOTAINT=0 2009-05-22 13:46:07 -04:00
mdwn2man improved period escape 2008-05-30 18:01:16 -04:00
pm_filter remove -T from ikiwiki.in, add back if NOTAINT=0 2009-05-22 13:46:07 -04:00
wikilist Fix typo. 2007-04-09 23:54:32 +00:00

README

Use ./Makefile.PL to generate a Makefile, "make" will build the
documentation wiki and a man page, and "make install" will install ikiwiki.

All other documentation is in the ikiwiki documentation wiki, which is also
available online at <http://ikiwiki.info/>


A few special variables you can set while using the Makefile:

  PROFILE=1 turns on profiling for the build of the doc wiki.
  (Uses Devel::Profile)

  NOTAINT=0 turns on the taint flag in the ikiwiki program. (Not recommended
  unless your perl is less buggy than mine -- see
  http://bugs.debian.org/411786)

  There are also other variables supported by MakeMaker, including PREFIX,
  INSTALL_BASE, and DESTDIR. See ExtUtils::MakeMaker(3).

  In particular, INSTALL_BASE is very useful if you want to install ikiwiki
  to some other location, as it configures it to see the perl libraries
  there. See `doc/tips/nearlyfreespeech.mdwn` for an example of using this to
  install ikiwiki and its dependencies in a home directory.