[dokuwiki] Re: Install error on snapshot

  • From: "TNHarris" <telliamed@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 31 Jan 2007 19:03:48 -0500

On Fri, 19 Jan 2007 17:51:36 +0100 (MET), "Robin Gareus"
<robin@xxxxxxxxxx> said:
> 
> Bob McConnell wrote:
> > I tried to install today's snapshot, but got the following error from
> > install.php:
> >   unrecognised or modified dokuwiki.php 
> 
> AFAICT all darcs devel versions do have this issue.
> ...
> or at your option add the output of `md5sum conf/dokuwiki.php` to the
> hash list (install.php:39ff) 
> 

Darcs has a feature to run a script after a command finishes. Here's one
that will add the current hash to install.php. In your ~/.darcs/defaults
add the line:
    pull posthook hashconf.sh
    pull run-posthook
You could also use ~/dokuwiki/_darcs/prefs/defaults (and probably should
if you manage other repositories with darcs).

hashconf.sh is:
    #!/bin/sh
    datestamp=`date +%F`
    confhash=`md5sum conf/dokuwiki.php | cut -b -32`
    newline=`printf "\'dev%s\' => \'%s\'," $datestamp $confhash`
    sed -i -e "/\\\$dokuwiki_hash = array/ a $newline" install.php

-- tom
telliamed@xxxxxxxxxxx

-- 
http://www.fastmail.fm - I mean, what is it about a decent email service?

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: