Menu

#147 Output and Error Redirection Fails

open
nobody
None
5
2009-04-30
2009-04-30
Anonymous
No

Hi,

I use the batch file below, to extract strings from source after building, as part of a larger build process.
So I would like to log the output and error but the log is always empty.

Regards,
Raghu

=================

@pushd.

@cd /d .

@REM - Adjust this to suit your path
@if "%DXG_PATH%"=="" ( set DXG_PATH=C:\Programs\dxgettext )
@set DXG="%DXG_PATH%\dxgettext.exe"

@set DXG_OPTS=--delphi -b "%CD%" -0 "%CD%" --useignorepo --nonascii --ignore-constreplace

@REM - Delete existing defpo
@if "%DEFPO%"=="" set DEFPO=default.po
del "%DEFPO%"

@REM - Extract all strings
%DXG% %DXG_OPTS% >dx_extract.log 2>&1

@REM - Change some strings in the PO file
sed -i -e"s,PACKAGE VERSION,DummyProj 7.0.1.5," %DEFPO%

@REM start /b default.po
@popd

Discussion


Log in to post a comment.