Is this done in smooth way? so that I may integrate postinst.cmd
functionality into postinst.bat for OS/2? We don't need special
capabilities there (just echo, copy, cd, if, calling zip). In fact
dos mode would be better, since dos is already supported in this
file, so we wouldn't have to maintain the same code for 3 different
cmd processors, just 2.


I think you should integrate NT/XP .cmd batch files with OS/2 ones, this way
they are executed by the native shell on both platforms.

We wouldn't gain much with this for now. The batch has to
work with MS-DOS, too. But it's a possibility to keep in
mind for the future, it could turn out useful.

Anyway, if you call a .bat file, a dos window gets opened and it executes its
autoexec.bat and then the .bat you passed it.

BUT, the environment of the cmd.exe process is NOT inherited by the
command.com one, so all variables like HB_... or the ones created by make are
not visible inside command.exe environment.

AND, you cannot start a .bat file from a path which is not fully 8.3 (for example I have my svn copy on \repository\harbour and from such a path no .bat
file can be executed).

Second question:
Can you force execution of .bat file to be executed by OS/2 shell,
by issuing: 'CMD.EXE /C hello.bat' ?


Yes, but with the limits I wrote above.

Thank you very much. So this is not the way to go.
(I have one more copy trick in mind here though.)

Maybe it's possible to move more functionality on the GNU Make
level to get rid of these bloody batches. It's a real pain to
update them :(

BTW, does postinst.cmd work as expected? You reported some
problems earlier. (double %s in generated .cfg, copy errors)

Brgds,
Viktor

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to