[dokuwiki] Re: darcs changes 2009-01-28


On 28 Jan 2009, at 13:10, Christopher Smith wrote:


On 28 Jan 2009, at 12:00, Andreas Gohr wrote:



Tue Jan 27 19:25:21 CET 2009  Andreas Gohr <andi[at]splitbrain.org>
* reverted plugin disabling method back to old behaviour
Ignore-this: b5fadadeee9de8e52c41c056cf62be6d

With this patch plugins are now disabled by placing a disabled file in the
plugin directory again.

Even though renaming plugin directories is the method with the fewest disk accesses it makes a lot of trouble with code revision control systems and,
more important, Linux package management systems.

Future versions of DokuWiki may use a central config file instead.

This patch also fixes the problem with the plugin manager not checking the
return values of the pugin_(dis|en)able functions correctly.


The following bash command, if run from the dokuwiki root directory will return a plugin directory converted to the new format back to the old format.


A better command (that will still work if intermediate directories in the path have dots in them)

find lib/plugins -name "*.disabled" | sed "s/\.disabled$//" | \
awk -F . '{ print "mv " $0 ".disabled " $0 " && touch " $0 "/ disabled ;" }' | sh

as before, check what it'll attempt by removing the pipe to shell from the end.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: