Viktor Szakáts wrote:
What about testing HB_INSTALL_PREFIX_ORI inside postinst.cmd to
see if
it has
been set to somethin by the user?
That would smell a little hacky to me, _ORI is an internal variable
and I wouldn't like to guarantee it's content or presence for the
future.
Sure, but postinst.cmd is like any other .mk file, an internal part
of the
compiler/suite which is executed during installation only.
BTW, it could be written in .PRG, since at that point hbrun is
already built
(and if not, installation should fail), am I wrong?
Yes, it could be.
Good idea, since it could allow us to drop .bat/.cmd/.sh logic
and replacing it with one common, shell independent .prg code.
(f.e. allowing to create Windows installers when using bash
shell). It would also restore full Win95 compatibility as build
platform.
We should however deal with cross-platform scenarios, where
we currently don't require native build of hbrun.
Besides this I can't see any problems with it ATM, but I may
miss something, so after we gathered some opinions / input,
we may step into this direction.
I'd definitely be happy if our repository wouldn't contain
_any_ bat/cmd/sh code whatsoever.
To be in sync with GNU Make to solve the same problem IMO easiest
would be to use os2cp in postinst too. (if there isn't any native
way to silence copy operation in OS/2 shell).
No way to silence copy/xcopy and, IMHO, a copy that fails without
errors is...
an error :)
Yes, but copying a file to itself can as well be considered
a success (which IMO it is), since our goal was to get the target
file as a result. It really comes down to how intelligently
can copy process decide if the source and target are the same.
Apparently MS-DOS rooted tools don't perform this stunt too
well. Bugging users because of lack of information isn't the
most useful error message. Worst case it should be suppressible
warning IMO.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour