lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 opened a new issue #364: Task: Make cross-OS build script
Date Tue, 06 Oct 2020 17:46:51 GMT

NightOwl888 opened a new issue #364:
URL: https://github.com/apache/lucenenet/issues/364


   We currently have a `.bat` script file to launch the build from the command line that wraps
a Powershell file. Clearly, since `.bat` is Windows-only, we will need to make a `.sh` script
file in order to be able to build on other operating systems.
   
   The [actual `build.bat` file](https://github.com/apache/lucenenet/blob/f0930a5f8df377cccc428dcfeba02ea4098a6dee/build.bat)
does nothing more than read command line parameters (in any order they are entered), setting
defaults where appropriate, and then launch Powershell with the PSake module.
   
   While we could provide instructions to launch the Powershell script using when not running
on Windows, the command structure would be simpler for end users if they had a similar `build.sh`
wrapper script with the same inputs as the `build.bat` file (and if it is possible to use
the `.sh` file on Windows, simply eliminate the `.bat` file).
   
   Note that the `build.ps` script also [generates a replacement `build.bat` file](https://github.com/apache/lucenenet/blob/f0930a5f8df377cccc428dcfeba02ea4098a6dee/build/build.ps1#L583-L663)
that eliminates the `version` and `packageVersion` parameters when building a release. This
ensures a [release distribution](https://lucenenet.apache.org/download/download.html)'s `build.bat`
file will always build the current release version unless the user manually updates the `version.props`
file that is also in the release distribution. `build.ps` will need to be updated to generate
a `build.sh` file during a release for the same reasons.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message