Win32 - installer.sh - adding profile.d
hfelton-lists
hfelton_lists at hotmail.com
Wed Dec 20 18:37:02 EST 2006
howdee,
im new to this system, so just wanted to say thanx for the help (via
wiki) again!
i dont have experience generating patches (yet), but the following few lines
should be fairly easy to understand. this is based upon r15238 at the moment?
c:\soft\repos\packaging\win32\installer.sh
line 790 - change first 'echo' to 'eval' - so commands to
.../profile.d/installer.sh work.
-- personally? change to ${_PROF_INST} as defined next ["above" in
actual script].
line 150 - add the following lines to allow first change to be useful:
_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
that is easiest, for now, but i have other comments/issues/questions because
im trying to create an inst_inno() function within this same file and am hitting
a few significant items.
truth? i havent fully tested the above code. im waiting until i sort out my
issues with inst_inno() before creating a whole new c:\soft2\ location...
also, once a profile.d gets created, the *.sh commands add layers of subtlety
to this whole process. for instance, restarting mingw between each
run is useful.
anyways, hope all is well - and that my little patch doesnt cause problems.
have fun (and/or happy holidays), harold felton
More information about the gnucash-devel
mailing list