[fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows

Sven Barth pascaldragon at googlemail.com
Thu Apr 18 20:33:31 CEST 2019


Am 18.04.2019 um 12:46 schrieb Tomas Hajny:
> On Thu, April 18, 2019 12:32, Mgr. Janusz Chmiel wrote:
>   .
>   .
>> I have also started to transform build.sh to Windows batch file.
>> Which issues AM I facingnow?
>   .
>   .
>> echo ppcjvm ---------------------------------------------
>> $TYPHON/fpc/fpc64/bin/x86_64-linux/ppcjvm
> $environment_variable in shell scripts = %environment_variable% in Windows
> batch files.
>
>
>   .
>   .
>> I have modified The builddebug.sh script which is available inside
>> C:\usr\local\pandroid\example\Vibrator\android
>> folder
>> But I do not know, if I can replace fi command by pause?
>   .
>   .
>
> "fi" (in shell scripts) = "$ENDIF" (in Pascal); there's no alternative to
> that in the Windows batch files, because those only allow executing a
> single command based on the result of the "if" condition. If longer blocks
> of commands need to be invoked, the Windows batch file alternative is
> either moving those blocks to another batch file (and calling that batch
> file in from the IF condition), or using a label and goto in the batch
> file.
Huh? What about

=== code begin ===

if CONDITION (
     BLA1
     BLA2
     BLA3
)

=== code end ===

I'm using that construct quite often at work...

Regards,
Sven



More information about the fpc-pascal mailing list