8000 files to build packages (and to build a real MMIN assembly on windows) by fearthecowboy · Pull Request #507 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

files to build packages (and to build a real MMIN assembly on windows) #507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
files to build packages (and to build a real MMIN assembly on windows)
  • Loading branch information
fearthecowboy committed Feb 6, 2016
commit 256c655e4ddd049856a149d57e33880d5adb9bd5
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ project.lock.json
*-tests.xml
/src/TypeCatalogGen/powershell.inc
/src/TypeCatalogGen/CorePsTypeCatalog.cs
intermediate/
packages/
Binary file added .number
Binary file not shown.
32 changes: 32 additions & 0 deletions build-packages.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
param( $config = "debug" )

try {
pushd $PSScriptRoot

# get a new build number
$number=(([int](get-content "$PSScriptRoot\.number"))+1)
set-content "$PSScriptRoot\.number" -Value $number
$ENV:DOTNET_BUILD_VERSION = "beta-$number"

# get the projects in the src folder
$items = (dir src\*\project.json).Directory.Name

# nuke any existing outputs before we start.
$output = "$PSScriptRoot\packages"
$intdir = "$PSScriptRoot\intermediate"

rmdir -recurse -force -ea 0 $output,$intdir

$shh = mkdir $output,$intdir -ea 0

$items | %{
pushd "src\$_"
# dotnet restore $_
dotnet pack --configuration $config --output "$PSScriptRoot\packages" --temp-output "$PSScriptRoot\intermediate" --version-suffix "beta-$number"
popd
}


} finally {
popd
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if LINUX

using Microsoft.Win32.SafeHandles;
using System;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -1642,3 +1644,4 @@ internal static MiResult SetString(SubscriptionDeliveryOptionsHandle OptionsHand
}

}
#endif
Loading
0