2013-02-08 11:58 UTC+0100 Viktor Szakats (harbour syenar.net)

* utils/hbmk2/hbmk2.prg
    + show warning and offer best practice when non-portable 
      ".exe" extension is used in -o option
    + show warning and offer best practice when non-portable 
      "*.lib" library name is passed directly to hbmk2
This commit is contained in:
Viktor Szakats
2013-02-08 11:00:22 +00:00
parent b033790ef3
commit 79ffe03138
2 changed files with 11 additions and 0 deletions

View File

@@ -10,6 +10,13 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-02-08 11:58 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
+ show warning and offer best practice when non-portable
".exe" extension is used in -o option
+ show warning and offer best practice when non-portable
"*.lib" library name is passed directly to hbmk2
2013-02-07 22:53 UTC+0100 Viktor Szakats (harbour syenar.net)
* ChangeLog.txt
* missed to tag prev entry as needed

View File

@@ -2780,6 +2780,9 @@ FUNCTION hbmk( aArgs, nArgTarget, /* @ */ lPause, nLevel )
IF ! Empty( tmp )
tmp := PathSepToSelf( tmp )
hb_FNameSplit( tmp, @cDir, @cName, @cExt )
IF Lower( cExt ) == ".exe" .AND. hbmk_TARGETTYPE( hbmk ) == "hbexe"
_hbmk_OutErr( hbmk, hb_StrFormat( I_( "Warning: Non-portable option: %1$s. Delete '.exe' extension." ), ParamToString( aParam ) ) )
ENDIF
DO CASE
CASE Empty( cDir )
tmp := hb_PathNormalize( PathMakeAbsolute( tmp, aParam[ _PAR_cFileName ] ) )
@@ -3312,6 +3315,7 @@ FUNCTION hbmk( aArgs, nArgTarget, /* @ */ lPause, nLevel )
cParam := PathSepToSelf( cParam )
IF hb_FNameExt( cParamL ) == ".lib"
cParam := FNameDirName( cParam )
_hbmk_OutErr( hbmk, hb_StrFormat( I_( "Warning: Non-portable option: %1$s. Use '-l%2$s' instead." ), ParamToString( aParam ), cParam ) )
ENDIF
IF CheckLibParam( hbmk, cParam )
IF _IS_AUTOLIBSYSPRE( cParam )