2009-09-29 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.prg
! Fixed another error.
+ Utilizing ugly hack to avoid using Harbour header files.
Although it works, this solution is way ugly. I'm brand new hbrun
user so I don't know what is the proper solution for using
headers from .prgs code run directly.
Maybe this should be compiled into hbrun and the internal
version used, or it needs full include header dir
autodetection logic built in.
This commit is contained in:
@@ -17,6 +17,17 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-09-29 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* bin/postinst.prg
|
||||
! Fixed another error.
|
||||
+ Utilizing ugly hack to avoid using Harbour header files.
|
||||
Although it works, this solution is way ugly. I'm brand new hbrun
|
||||
user so I don't know what is the proper solution for using
|
||||
headers from .prgs code run directly.
|
||||
Maybe this should be compiled into hbrun and the internal
|
||||
version used, or it needs full include header dir
|
||||
autodetection logic built in.
|
||||
|
||||
2009-09-29 12:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* bin/postinst.prg
|
||||
! Fixed bad typos reported by Elart.
|
||||
|
||||
@@ -7,9 +7,13 @@
|
||||
* See COPYING for licensing terms.
|
||||
*/
|
||||
|
||||
/* TOFIX: Ugly hack to avoid #include "directry.ch" */
|
||||
#define F_NAME 1 /* File name */
|
||||
|
||||
PROCEDURE Main()
|
||||
LOCAL nErrorLevel := 0
|
||||
LOCAL cFile
|
||||
LOCAL aFile
|
||||
|
||||
IF Empty( GetEnv( "HB_PLATFORM" ) ) .OR. ;
|
||||
Empty( GetEnv( "HB_COMPILER" ) ) .OR. ;
|
||||
@@ -46,8 +50,8 @@ PROCEDURE Main()
|
||||
IF GetEnv( "HB_PLATFORM" ) $ "win|wce|os2|dos" .AND. ;
|
||||
! Empty( GetEnv( "HB_INSTALL_PREFIX" ) )
|
||||
|
||||
FOR EACH cFile IN Directory( "Change*" )
|
||||
hb_FCopy( cFile, GetEnv( "HB_INSTALL_PREFIX" ) + hb_osPathSeparator() + iif( GetEnv( "HB_PLATFORM" ) == "dos", "CHANGES", cFile ) )
|
||||
FOR EACH aFile IN Directory( "Change*" )
|
||||
hb_FCopy( aFile[ F_NAME ], GetEnv( "HB_INSTALL_PREFIX" ) + hb_osPathSeparator() + iif( GetEnv( "HB_PLATFORM" ) == "dos", "CHANGES", aFile[ F_NAME ] ) )
|
||||
NEXT
|
||||
|
||||
hb_FCopy( "COPYING", GetEnv( "HB_INSTALL_PREFIX" ) + hb_osPathSeparator() + "COPYING" )
|
||||
|
||||
Reference in New Issue
Block a user