Updated the k build target to not use the cache.

This commit is contained in:
David Fowler 2014-02-10 23:40:19 -08:00
parent 00de03d641
commit 050aeb12c7
2 changed files with 4 additions and 4 deletions

View File

@ -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<string, long> getVersion = version => {

View File

@ -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);