Skip to content

Commit f5da310

Browse files
committed
Changing package build script name
1 parent f13bb12 commit f5da310

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-

1+
new: create

tools/CLU/BuildDrop.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (!(Test-Path -Path $dropLocation -PathType Container))
2121
mkdir "$dropLocation\clurun"
2222
}
2323

24-
$buildProfileScriptPath = "`"$thisScriptDirectory\BuildProfile.ps1`"" # Guard against spaces in the path
24+
$buildPackageScriptPath = "`"$thisScriptDirectory\BuildPackage.ps1`"" # Guard against spaces in the path
2525
$sourcesRoot = "$workspaceDirectory\src\clu"
2626

2727
# Grab all command packages to build.
@@ -37,7 +37,7 @@ foreach($commandPackage in $commandPackages)
3737
$commandPackageDir = $commandPackage.Directory
3838
$buildOutputDirectory = Join-Path -path $commandPackageDir -ChildPath "bin\Debug\publish"
3939

40-
Invoke-Expression "& $buildProfileScriptPath $commandPackageDir $commandPackageName $buildOutputDirectory $packageVersion $dropLocation\CommandRepo"
40+
Invoke-Expression "& $buildPackageScriptPath $commandPackageDir $commandPackageName $buildOutputDirectory $packageVersion $dropLocation\CommandRepo"
4141
}
4242

4343
if (!($excludeCluRun))

tools/CLU/BuildProfile.ps1 renamed to tools/CLU/BuildPackage.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $nuSpecOutput = [System.IO.Path]::Combine($packageSource, ($packageId + ".nuspec
2424
Write-Host "Creating dynamic nuspec package in: $nuSpecOutput"
2525

2626
$fileContent = Get-Content $nuSpecTemplate
27+
$renameFileExists = Test-Path -Path [System.IO.Path]::Combine($packageSource, "content", "rename.cfg")
2728
$files = (Get-ChildItem $packageSource | Where -FilterScript {!$_.Name.Contains("nuspec")} | Select-Object -Property Name)
2829
$refFiles = $files | Where -FilterScript { $_.Name.EndsWith(".dll")}
2930
$contentFiles = $files | Where -FilterScript { $_.Name.EndsWith("xml")}
@@ -35,6 +36,10 @@ if ($packageId -ne "Microsoft.CLU.Commands")
3536
{
3637
$contentFileText += " <file src=""content\azure.lx"" target=""content""/>`r`n"
3738
}
39+
if ($renameFileExists)
40+
{
41+
$contentFileText += " <file src=""content\rename.cfg"" target=""content""/>`r`n"
42+
}
3843
$contentFileText += " <file src=""content\package.cfg"" target=""content""/>`r`n"
3944
$sourceFileText = ""
4045
$refFiles | %{$sourceFileText += (" <file src=""" + $_.Name + """ target=""lib\dnxcore50""/>`r`n")}

0 commit comments

Comments
 (0)