From 050aeb12c7bfed9ddda39384bad1e9c203860591 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Mon, 10 Feb 2014 23:40:19 -0800 Subject: [PATCH] Updated the k build target to not use the cache. --- build/_k.shade | 2 +- makefile.shade | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/_k.shade b/build/_k.shade index 94e0c75f30..11faa3391c 100644 --- a/build/_k.shade +++ b/build/_k.shade @@ -18,7 +18,7 @@ prefetch='true' default prefetch='${true}' -nuget-install package='ProjectK' outputDir='packages' extra='-pre' once='ProjectK-NuGet' if='prefetch' +nuget-install package='ProjectK' outputDir='packages' extra='-pre -nocache' once='ProjectK-NuGet' if='prefetch' @{ Func getVersion = version => { diff --git a/makefile.shade b/makefile.shade index 0b86abf540..834db5f08c 100644 --- a/makefile.shade +++ b/makefile.shade @@ -70,8 +70,8 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}' { foreach (string fileName in templateFiles) { - var targetFile = Path.Combine(repo.Key, fileName); - var sourceFile = Path.Combine(templatePath, fileName); + var targetFile = Path.Combine(Directory.GetCurrentDirectory(), repo.Key, fileName); + var sourceFile = Path.Combine(Directory.GetCurrentDirectory(), templatePath, fileName); // Don't update the makefile if(fileName.Equals("makefile.shake", StringComparison.OrdinalIgnoreCase) && File.Exists(targetFile)) @@ -79,7 +79,7 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}' continue; } - if(!File.Exists(targetFile) || + if(!File.Exists(sourceFile) || (File.ReadAllText(sourceFile) != File.ReadAllText(targetFile))) { Log.Info("Updating " + fileName + " to " + repo.Key);