restructure the output layout

also reorganize the scripts folder
This commit is contained in:
Andrew Stanton-Nurse 2015-11-10 17:30:01 -08:00
parent df3a5fba7a
commit 4cc15b1246
61 changed files with 926 additions and 3213 deletions

20
scripts/build.ps1 Normal file
View file

@ -0,0 +1,20 @@
param(
[string]$Configuration="Debug")
$ErrorActionPreference="Stop"
if (!$env:DOTNET_BUILD_VERSION) {
# Get the timestamp of the most recent commit
$timestamp = git log -1 --format=%ct
$origin = New-Object -Type DateTime -ArgumentList 1970, 1, 1, 0, 0, 0, 0
$commitTime = $origin.AddSeconds($timestamp)
$LastCommitTimestamp = $commitTime.ToString("yyyyMMdd-HHmmss")
$env:DOTNET_BUILD_VERSION = "0.0.1-alpha-$LastCommitTimestamp"
}
Write-Host -ForegroundColor Green "*** Building dotnet tools version $($env:DOTNET_BUILD_VERSION) - $Configuration ***"
& "$PSScriptRoot\compile.ps1" -Configuration:$Configuration
Write-Host -ForegroundColor Green "*** Packaging dotnet ***"
& "$PSScriptRoot\package\package.ps1"