usando o FileStats
Enviado: 24 Ago 2016 13:30
Vlademiro,
O comando correto para o harbour 3.4 é
-bldhead=build.ch
O comando correto para o harbour 3.4 é
-bldhead=build.ch
Código: Selecionar todos
PROCEDURE Main
LOCAL cDateTime
cDateTime := Dtos( Date() ) + Substr( Time(), 1, 2 ) + Substr( Time(), 4, 2 )
cTxt := "#define JPA_VERSAO " + ["] + Transform( cDateTime, "@R 9999.99.99.9999" ) + ["] + hb_Eol()
cTxt += "#define JPA_VERSAO_RC " + Transform( cDateTime, "@R 9999,99,99,9999" ) + hb_Eol()
hb_MemoWrit( "d:\cdrom\fontes\build\build.ch", cTxt )
RETURN
Código: Selecionar todos
-I\cdrom\fontes\build
-ibuild.ch
Código: Selecionar todos
#include "build.ch"
1 VERSIONINFO
FILEVERSION JPA_VERSAO_RC
Código: Selecionar todos
del jpa.exe
d:\cdrom\fontes\build\build
hbmk2 jpa.hbp %1 %2 %3 %4 %5
if not errorlevel 1 assina jpa.exe
Código: Selecionar todos
// 552
#define JPA_VERSAO "2016.09.14.0944"
#define JPA_VERSAO_RC 2016,09,14,0944
Código: Selecionar todos
PROCEDURE Main
LOCAL cDateTime, cTxt, nBuildNum, cBuildFile
cBuildFile := "d:\cdrom\fontes\build\build.ch"
cDateTime := Dtos( Date() ) + Substr( Time(), 1, 2 ) + Substr( Time(), 4, 2 )
nBuildNum := Val( Substr( MemoRead( cBuildFile ), 4, 10 ) ) + 1
cTxt := "// " + Str( nBuildNum, 10 ) + hb_Eol()
cTxt += "#define JPA_VERSAO " + ["] + Transform( cDateTime, "@R 9999.99.99.9999" ) + ["] + hb_Eol()
cTxt += "#define JPA_VERSAO_RC " + Transform( cDateTime, "@R 9999,99,99,9999" ) + hb_Eol()
hb_MemoWrit( cBuildFile, cTxt )
RETURN
Código: Selecionar todos
del jpa.exe
d:\cdrom\fontes\build\build
hbmk2 jpa.hbp %1 %2 %3 %4 %5
if not errorlevel 1 assina jpa.exe