Closed springmeyer closed 8 years ago
As discussed on chat, I will tackle this as time permits or on the fly when necessary. I don't think there is a urgent need to do it right away.
P.S.: WRT PowerShell: With current OS (8.1, 2012) there shouldn't be anything more to do than just call it powershell <cmd>
.
Maybe powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
Maybe powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
Okay, can you add instruction to the readme and then close this out?
No need to document, I just do it automatically, like so
The last real need for a BAT file :smirk:
oh, so you are saying that that line is needed everytime before running a powershell script? And therefore wrapping powershell in bat is the best approach? I see this also at https://github.com/mapbox/windows-builds/blob/master/linktype.bat#L12.
You got me :smirk: . No, it's not necessary every time. Both occurrences are just quick hacks. Will do it properly in settings.bat: check policy and adjust only if necessary, and do a proper bail out, if user is not allowed to change policy.
Not going to go he Powershell route.
Decided to go with ScriptCs
:
scripts/build.csx
[wip] for mapink: https://github.com/mapnik/mapnik-gyp/compare/new-win-build-scripts
The scripts are batch because:
But those are both lousy reasons for sticking with batch, and now that @BergWerkGIS - who is experienced with powershell - is pushing hard on these scripts, let's switch to powershell where appropriate.
TODO: