Ahah!  That's how to parse a text file!!  I knew that was possible but hadn't 
dug that deep.

Thanks.

Yes, it would have been better, although it turns out checking on hwp.dll was 
needed too.

I don't think we need to change at this point.  Presumably folks won't try this 
on post-4.1.2 releases :).  

Thanks again,

There are some future utility cases where the parsing of text will be important.

> -----Original Message-----
> From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de]
> Sent: Sunday, August 21, 2016 00:12
> To: dev@openoffice.apache.org
> Subject: Re: a question about "APPLY-4.1.2-patch1.bat"
> 
> Hi,
> 
> >> Apache OpenOffice 4.1.2 *does* *not* install hwp.dll.  It should not
> be there.
> 
> wouldn't it be better to check the "version.ini" instead of hwp.dll ?
> an upcoming aoo420 release will not contain hwp.dll too ...
> 
> for example, something like this:
> 
> @echo off
> setlocal
> FOR /F "tokens=1,2 delims=^=" %%a IN ('type "%AOOPATCH%\version.ini"')
> DO (
>   if '%%a' == 'OOOPackageVersion' (
>     if '%%b' == '4.1.2' echo %%b
>   )
> )
> endlocal
> 
> Regards
> Oliver
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to