windows build and r15912

Derek Atkins warlord at MIT.EDU
Tue Apr 17 13:07:25 EDT 2007


Perhaps we should pull in custom.sh first, and then have
defaults.sh do something like:

[ -z "${GLOBAL_DIR:-}" ] && GLOBAL_DIR=<default>

.. and do this for all the variables to only set them if
they are not already set.

-derek

"Hale Boyes, Kevin " <Kevin.HaleBoyes at encana.com> writes:

> Maybe my scripting skill are a bit rusty but how is the
> new defaults/custom file loading going to work?
>
> The only value that I normally change is the GLOBAL_DIR setting.
> When I create the custom file, will it contain just the GLOBAL_DIR
> variable or do I need to copy the entire defaults file and
> change just the one variable?
>
> I'm guessing that I need to do the later because of all the
> variables that depend on the value of GLOBAL_DIR (like DOCS_DIR).
> They will be set before the custom file is sourced and their
> value won't change when I reset the value of GLOBAL_DIR.
>
> Hmm, I guess I'll have to be more careful than that.  I won't
> want an exact copy of defaults as that would call all the add_step
> functions again.
>
> In an attempt to answer my own question...  If I want to change the
> value of GLOBAL_DIR then I will put it and all the variable that
> depend on it into the custom file, but nothing else.  It isn't enough
> to put just GLOBAL_DIR into custom.
>
> Is that correct?
>
> Thanks,
> Kevin.
>
> This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited.  If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. 
> http://www.encana.com
>
>
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list