From 9eac453540842c3550d9fcdd975e0eca397be0d6 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Tue, 28 Jan 2014 15:57:50 -0800 Subject: [PATCH] Add Configuration, DataProtection. Add init target. --- makefile.shade | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/makefile.shade b/makefile.shade index 7e7bfdb571..3701ddd0da 100644 --- a/makefile.shade +++ b/makefile.shade @@ -12,6 +12,8 @@ var repos='${new Dictionary { {"DependencyInjection", "git@github.com:aspnet/DependencyInjection.git"}, {"FileSystem", "git@github.com:aspnet/FileSystem.git"}, {"Logging", "git@github.com:aspnet/Logging.git"}, + {"Configuration", "git@github.com:aspnet/Configuration.git"}, + {"DataProtection", "git@github.com:aspnet/DataProtection.git"}, {"Data", "git@github.com:aspnet/Data.git"}, {"Razor", "git@github.com:aspnet/Razor.git"}, {"Routing", "git@github.com:aspnet/Routing.git"}, @@ -53,6 +55,27 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}' } } +#init + @{ + foreach(var repo in repos) + { + foreach (string file in new[] + { + ".gitattributes", + ".gitignore", + "build.cmd", + "makefile.shade", + "NuGet.Config", + }) + { + if (!File.Exists(repo.Key + @"\" + file)) + { + File.Copy(@"Template\" + file, repo.Key + @"\" + file); + } + } + } + } + #only-compile target='compile' @{ var failed = new Dictionary();