Merge pull request #995 from PowerShell/andschwa/build-psm1
Rename PowerShellGitHubDev.psm1 to build.psm1
This commit is contained in:
commit
ec45c9c8dc
@ -31,7 +31,7 @@ Get PowerShell
|
||||
| Get **Binaries** | [Releases][] | [Artifacts][] | [Artifacts][] | [Releases][] | TBD |
|
||||
|
||||
Building summary: `Start-PSBuild` from the module
|
||||
`./PowerShellGitHubDev.psm1` (self-host on Linux / OS X)
|
||||
`./build.psm1` (self-host on Linux / OS X)
|
||||
|
||||
See [Linux releases](docs/installation/linux.md) and
|
||||
[Windows artifacts](docs/installation/windows.md) installation
|
||||
|
@ -18,12 +18,12 @@ install:
|
||||
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
|
||||
- git config --global url.git@github.com:.insteadOf https://github.com/
|
||||
- git submodule update --init -- src/windows-build src/Modules/Pester
|
||||
- ps: Import-Module .\PowerShellGitHubDev.psm1; Start-PSBootstrap
|
||||
- ps: Import-Module .\build.psm1; Start-PSBootstrap
|
||||
|
||||
build_script:
|
||||
- ps: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Import-Module .\PowerShellGitHubDev.psm1
|
||||
Import-Module .\build.psm1
|
||||
Start-PSBuild -Publish
|
||||
Start-PSBuild -FullCLR
|
||||
|
||||
|
@ -834,7 +834,7 @@ function script:Get-StronglyTypeCsFileForResx
|
||||
$body = @'
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a Start-ResGen funciton from PowerShellGitHubDev.psm1.
|
||||
// This code was generated by a Start-ResGen funciton from build.psm1.
|
||||
// To add or remove a member, edit your .ResX file then rerun Start-ResGen.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
4
build.sh
4
build.sh
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if hash powershell 2>/dev/null; then
|
||||
echo 'Continuing with `powershell -c Start-PSBuild`'
|
||||
powershell -c "Import-Module ./PowerShellGitHubDev.psm1; Start-PSBuild"
|
||||
echo 'Continuing with `powershell -noprofile -c Start-PSBuild`'
|
||||
powershell -noprofile -c "Import-Module ./build.psm1; Start-PSBuild"
|
||||
else
|
||||
echo 'No `powershell`, see docs/building/linux.md or osx.md to build PowerShell!'
|
||||
fi
|
||||
|
@ -65,7 +65,7 @@ import our module, bootsrap the dependencies, and build!
|
||||
In PowerShell:
|
||||
|
||||
```powershell
|
||||
Import-Module ./PowerShellGitHubDev.psm1
|
||||
Import-Module ./build.psm1
|
||||
Start-PSBootstrap
|
||||
```
|
||||
|
||||
@ -98,7 +98,7 @@ uninstall prior any prior versions.
|
||||
Build using our module
|
||||
======================
|
||||
|
||||
We maintain a [PowerShell module](../../PowerShellGitHubDev.psm1) with
|
||||
We maintain a [PowerShell module](../../build.psm1) with
|
||||
the function `Start-PSBuild` to build PowerShell. Since this is
|
||||
PowerShell code, it requires self-hosting. If you have followed the
|
||||
toolchain setup section above, you should have `powershell` installed.
|
||||
@ -108,7 +108,7 @@ toolchain setup section above, you should have `powershell` installed.
|
||||
> in Bash; see [Build manually][#Build manually] below.
|
||||
|
||||
```powershell
|
||||
Import-Module ./PowerShellGitHubDev.psm1
|
||||
Import-Module ./build.psm1
|
||||
Start-PSBuild
|
||||
```
|
||||
|
||||
|
@ -29,7 +29,7 @@ build PowerShell. The `Start-PSBootstrap` function will automatically
|
||||
install it and add it to your path:
|
||||
|
||||
```powershell
|
||||
Import-Module ./PowerShellGitHubDev.psm1
|
||||
Import-Module ./build.psm1
|
||||
Start-PSBootstrap
|
||||
```
|
||||
|
||||
@ -62,11 +62,11 @@ CLI can cause odd failures when running. Please check your version.
|
||||
Build using our module
|
||||
======================
|
||||
|
||||
We maintain a [PowerShell module](../../PowerShellGitHubDev.psm1) with
|
||||
We maintain a [PowerShell module](../../build.psm1) with
|
||||
the function `Start-PSBuild` to build PowerShell.
|
||||
|
||||
```powershell
|
||||
Import-Module ./PowerShellGitHubDev.psm1
|
||||
Import-Module ./build.psm1
|
||||
Start-PSBuild
|
||||
```
|
||||
|
||||
|
@ -45,7 +45,7 @@ choco install cmake.portable
|
||||
Build using our module
|
||||
======================
|
||||
|
||||
Use `Start-PSBuild -FullCLR` from the `PowerShellGitHubDev.psm1`
|
||||
Use `Start-PSBuild -FullCLR` from the `build.psm1`
|
||||
module.
|
||||
|
||||
Because the `ConsoleHost` project (*not* the `Host` project) is a
|
||||
|
@ -15,7 +15,7 @@ Values are relative file paths in PowerShell/PowerShell GitHub project.
|
||||
We used to have a submodule at this path.
|
||||
If you replace this `src\monad` with path to the **admin** enlistment, you will get the mapping to source depot.
|
||||
|
||||
### PowerShellGitHubDev.psm1
|
||||
### build.psm1
|
||||
|
||||
Our dev module contains a number of functions to work that can be used to work with this mapping file.
|
||||
|
||||
|
@ -25,7 +25,7 @@ If you just updated the string value, that's all you need to do: no need to re-g
|
||||
|
||||
When you adding or removing string, `.cs` file need to be changed.
|
||||
|
||||
1. Run `Start-ResGen` function from `PowerShellGitHubDev.psm1`
|
||||
1. Run `Start-ResGen` function from `build.psm1`
|
||||
1. Make sure your code is building with newly generated resources (run `Start-PSBuild`).
|
||||
1. Go to submodule (`cd src\windows-build`) and perform the [submodule commit dance](../git/committing.md).
|
||||
Follow working with [submodule rules](../../.github/CONTRIBUTING.md#submodules)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Describe 'PowerShellGithubDev.psm1 and powershell.exe' {
|
||||
Describe 'build.psm1 and powershell.exe' {
|
||||
Context '$env:DEVPATH assemblies loading' {
|
||||
It 'has $env:DEVPATH set' {
|
||||
$env:DEVPATH | Should Not Be $null
|
||||
@ -29,4 +29,4 @@ Describe 'PowerShellGithubDev.psm1 and powershell.exe' {
|
||||
Join-Path $env:DEVPATH Microsoft.PowerShell.Security.dll)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user