[[forum/refresh_and_setup]] indicates some confusion between --setup
and -setup. Both work, but it's clearer if we stick to one in
documentation and code.
A 2012 commit to [[plugins/theme]] claims that "-setup" is required
and "--setup" won't work, but I cannot find any evidence in ikiwiki's
source code that this has ever been the case.
On non-Debian systems, /usr/bin/perl might not be the best available
Perl interpreter. Use whichever perl was used to run Makefile.PL,
unless it was "/usr/bin/perl", in which case there's nothing to do.
SYSCONFDIR might be overridden to a value containing "etc/ikiwiki",
in which case we might overzealously substitute more than once,
especially if SYSCONFDIR is overridden to different values at build
and install time. Avoid this by matching only the instances we meant
to match.
* Add unminified jquery js and css files to source.
* Update to jquery 1.6.2, and jquery-ui 1.8.14.
The full files are included in the source but not the binary.
I'm not minifying the files as part of build because I don't want ikiwiki
to build depend on a javascript minifier. (Let alone need one at runtime).
Nor do I want to deal with any breakage caused by the minifier. These
files were taken from the debian packages.
The jquery-tmpl full file was taken from revision
66bb852217c49ae8c9a8f2522150354ae80463de of its git repository, which
matches the minified file I already had. I did not want to deal with possible
breakage in newer versions; this thing claims to need an ancient version of
jquery (1.4.2), and is perhaps only working by luck with the newer versions
as it is.
These are for use by wikis where the primary language is not English.
On such a wiki, it makes sense to use an underlay has the source for pages
in the native language.
from Thomas Keller, who explains:
1) find -wholename is not available on BSD / OSX (a nice rant about this
issue is here: http://fuhm.livejournal.com/1848.html)
2) cp -a is not available on BSD / OSX, there is an alternative install
call, but it might be cool to just shut up cp complaining about it... ;)
3) Two find calls have been missing the path argument.
It will set up an ikiwiki instance tuned for use in blogging.
As part of this change, move the example sites into /usr/share/ikiwiki so
they are available even if docs are not installed.
I'd like to preserve the mtime and ctime of files in the underlay if
possible, to avoid ikiwiki thinking they've changed and refreshing them
each time it's upgraded.
But, fall back to the old install command for systems that lack cp -a.