Win32 - installer.sh - adding profile.d

hfelton-lists hfelton_lists at hotmail.com
Wed Dec 20 23:16:26 EST 2006


stupid oversight - replacing/using a variable created... h.

On 12/20/06, hfelton-lists <hfelton_lists at hotmail.com> wrote:
> howdee again,
>
> ok - heres the 'simple' functional change to add
> the profile.d directory.  ive created a different
> directory to hold the functional change for inst-inno().
>
> i have a completely different one-liner that is
> bugging me so ill try sending that as a different
> email/subject if i sort it out...
>
> :::trying to stay with one-topic/thread at a time...:::
>
> have fun, h.  :)
>
> Index: install.sh
> ===================================================================
> --- install.sh  (revision 15239)
> +++ install.sh  (working copy)
> @@ -148,6 +148,12 @@
>  function inst_dtk() {
>     setup MSYS DTK
>     _MSYS_UDIR=`unix_path $MSYS_DIR`
> +    _PROF_UDIR=${_MSYS_UDIR}/etc/profile.d
> +    _PROF_INST=${_PROF_UDIR}/installer.sh
> +    if [ ! -d "${_PROF_UDIR}" ]; then
> +        mkdir -p "${_PROF_UDIR}"
> +        echo > ${_PROF_INST}
> +    fi
>     if quiet ${_MSYS_UDIR}/bin/perl --help
>     then
>         echo "msys dtk already installed.  skipping."
> @@ -787,7 +793,7 @@
>                _CHANGE="export ${_ENV}=\"${_ADDS}\""
>            fi
>            echo $_CHANGE
> -           echo echo "'${_CHANGE}' >> /etc/profile.d/installer.sh"
> +           eval echo "'${_CHANGE}' >> '${_PROF_INST}'"
>        fi
>     done
>     if test "x$cross_compile" = "xyes" ; then
>


More information about the gnucash-devel mailing list