[M3devel] config file issue

jay.krell at cornell.edu jay.krell at cornell.edu
Tue Jul 21 20:24:05 CEST 2009


Agreed backup and always update. I don't want to consider merging.  
These are more code than data, but a mix.
(code is data...the CPU is an interpreter...)
I would like to aim for not needing user edits but that may be  
impossible to achieve.

  - Jay (phone)

On Jul 21, 2009, at 8:26 AM, Olaf Wagner <wagner at elegosoft.com> wrote:

> Quoting Jay K <jay.krell at cornell.edu>:
>
>> Olaf..sorry, this movement to the config directory seemed very  
>> easy  at the time..and it is still not quite working.
>>
>>
>> http://tinderbox.elegosoft.com/tinderbox/cgi-bin/gunzip.cgi?tree=cm3&brief-log=1248139749.31541
>>
>>
>> "/home/m3/work/cm3-inst/birch.elegosoft.com/current/bin/ 
>> cm3cfg.common", line  170: quake runtime error: undefined variable:  
>> ROOT
>>
>>
>> That's probably an old version, where the use isn't guarded with if  
>> defined.
>>
>> upgrade.sh:
>>
>> if [ ! -d  "${INSTALLROOT}/bin/config" ]; then
>>  echo "create new config sub directory ${INSTALLROOT}/bin/config"
>>  cp_config_files
>> fi
>>
>>
>> Why the guard with ! -d?
>> How about just always do it?
>>
>> There are other paths...I don't understand..how about just always  
>> do it?
>
> The original idea was to update config files only if the upgrade
> failed otherwise. That was to preserve any adaptions the end user
> might have made.
>
> To do it right in a real upgrade would require an interactive merge.
> I've got no problem with forcing the upgrade every time but keeping
> a backup. Of course, the user will immediately overwrite that with
> just repeating the command, if we don't version the backup...
>
> Please also consider that most users will have the single cm3.cfg
> which contains everything, while yours just delegates...
>
> So I'd vote for providing a backup with a timestamp and then forcing
> everything to use the new files.
>
> Olaf
> -- 
> Olaf Wagner -- elego Software Solutions GmbH
>               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germ 
> any
> phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
>   http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Be 
> rlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr:  
> DE163214194
>
>



More information about the M3devel mailing list