From 52c9e72ee1843f0a7fec88febcaaa313ced3bf15 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 25 Jan 2014 01:12:12 -0800 Subject: [PATCH] Changed package name to KoreBuild. --- build/KBuild.nuspec => KoreBuild.nuspec | 5 ++++- build/_k-standard-goals.shade | 10 +--------- build/_nuget-local-publish.shade | 20 ++++++++++++++++++++ makefile.shade | 5 ++++- 4 files changed, 29 insertions(+), 11 deletions(-) rename build/KBuild.nuspec => KoreBuild.nuspec (73%) create mode 100644 build/_nuget-local-publish.shade diff --git a/build/KBuild.nuspec b/KoreBuild.nuspec similarity index 73% rename from build/KBuild.nuspec rename to KoreBuild.nuspec index 232e357b69..0cf6c0c581 100644 --- a/build/KBuild.nuspec +++ b/KoreBuild.nuspec @@ -1,7 +1,7 @@ - KBuild + KoreBuild The ProjectK build tools 0.0 Microsoft @@ -9,4 +9,7 @@ ProjectK build tooling en-US + + + \ No newline at end of file diff --git a/build/_k-standard-goals.shade b/build/_k-standard-goals.shade index b6a38ff7dd..14a3fe7786 100644 --- a/build/_k-standard-goals.shade +++ b/build/_k-standard-goals.shade @@ -31,15 +31,7 @@ default TEST_DIR='${Path.Combine(TARGET_DIR, "test")}' } #nuget-install target='install' description='Copy NuGet packages to local repo' - @{ - var HOME_DIR = E("HOME"); - if (string.IsNullOrEmpty(HOME_DIR)) - { - HOME_DIR = E("HOMEDRIVE") + E("HOMEPATH"); - } - } - copy sourceDir='${BUILD_DIR}' include='*.nupkg' outputDir='${Path.Combine(HOME_DIR, ".nuget")}' overwrite='${true}' - + nuget-local-publish sourcePackagesDir='${BUILD_DIR}' functions @{ string E(string key) { return Environment.GetEnvironmentVariable(key); } diff --git a/build/_nuget-local-publish.shade b/build/_nuget-local-publish.shade new file mode 100644 index 0000000000..4f1b4d73e3 --- /dev/null +++ b/build/_nuget-local-publish.shade @@ -0,0 +1,20 @@ +@{/* + +nuget-local-publish + Publishing nuget packages in the source directory to %USERPROFILE%\.nuget + +sourcePackagesDir='' + Directory of packages to publish to the local nuget feed + +*/} + +@{ + var HOME_DIR = Environment.GetEnvironmentVariable("HOME"); + if (string.IsNullOrEmpty(HOME_DIR)) + { + HOME_DIR = Environment.GetEnvironmentVariable("HOMEDRIVE") + + Environment.GetEnvironmentVariable("HOMEPATH"); + } +} + +copy sourceDir='${sourcePackagesDir}' include='*.nupkg' outputDir='${Path.Combine(HOME_DIR, ".nuget")}' overwrite='${true}' diff --git a/makefile.shade b/makefile.shade index cf84014c8d..11a5c2e3b3 100644 --- a/makefile.shade +++ b/makefile.shade @@ -27,7 +27,10 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts")}' #pack directory create='${TARGET_DIR}' - nuget-pack nuspecFile='${Path.Combine(BASE_DIR, "build", "KBuild.nuspec")}' packageVersion='${VERSION}' outputDir='${TARGET_DIR}' + nuget-pack nuspecFile='${Path.Combine(BASE_DIR, "KoreBuild.nuspec")}' packageVersion='${VERSION}' outputDir='${TARGET_DIR}' + +#pack-install .pack + nuget-local-publish sourcePackagesDir='${TARGET_DIR}' #git-pull target='pull' @{