Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 if (BuildVersion != 0) | 235 if (BuildVersion != 0) |
236 { | 236 { |
237 DefaultRepository.Update(string.Format("{0}.{1}", MajorVersion, MinorVersion)); | 237 DefaultRepository.Update(string.Format("{0}.{1}", MajorVersion, MinorVersion)); |
238 } | 238 } |
239 | 239 |
240 // if there are incoming changes those changes will be printed, othe rwise we can continue in the process | 240 // if there are incoming changes those changes will be printed, othe rwise we can continue in the process |
241 if (!HasIncomingChanges(new List<Hg> { DefaultRepository })) | 241 if (!HasIncomingChanges(new List<Hg> { DefaultRepository })) |
242 { | 242 { |
243 // in case build fails the method will print its failures | 243 // in case build fails the method will print its failures |
244 // TODO(peleyal): Currently a WP project can't be build. NEED TO INVESTIGATE MORE. | 244 // TODO(peleyal): Currently a WP project can't be build. NEED TO INVESTIGATE MORE. |
245 //if (BuildDefaultRepository()) | 245 if (BuildDefaultRepository()) |
246 { | 246 { |
247 CreateCoreNuGetPackages(); | 247 CreateCoreNuGetPackages(); |
248 // TODO(peleyal): release notes should be part of the packag e | 248 // TODO(peleyal): release notes should be part of the packag e |
249 } | 249 } |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 /// <summary> | 253 /// <summary> |
254 /// Doing Step 2 of the release process which includes the following: | 254 /// Doing Step 2 of the release process which includes the following: |
255 /// <list type="number"> | 255 /// <list type="number"> |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
441 Directory.CreateDirectory(Path.Combine(binDir, "Windows")); | 441 Directory.CreateDirectory(Path.Combine(binDir, "Windows")); |
442 | 442 |
443 foreach (var project in ReleaseProjects) | 443 foreach (var project in ReleaseProjects) |
444 { | 444 { |
445 var outputDir = binDir; | 445 var outputDir = binDir; |
446 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder. | 446 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder. |
447 if (project.GetName().Contains("WP")) | 447 if (project.GetName().Contains("WP")) |
448 { | 448 { |
449 outputDir = Path.Combine(outputDir, "WP"); | 449 outputDir = Path.Combine(outputDir, "WP"); |
450 } | 450 } |
451 // Add Google.Apis.Winndows and Google.Apis.Auth.Windows assembl ies to a Windows folder. | 451 // Add Google.Apis.Windows and Google.Apis.Auth.Windows assembli es to a Windows folder. |
jmcgrew
2014/08/25 19:06:50
Winndows -> Windows
peleyal
2014/08/28 21:08:17
Done.
| |
452 else if (project.GetName().Contains("Windows")) | 452 else if (project.GetName().Contains("Windows")) |
453 { | 453 { |
454 outputDir = Path.Combine(outputDir, "Windows"); | 454 outputDir = Path.Combine(outputDir, "Windows"); |
455 } | 455 } |
456 | 456 |
457 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease"); | 457 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease"); |
458 foreach (var filePath in Directory.GetFiles(releasePath, "Google .Apis.*")) | 458 foreach (var filePath in Directory.GetFiles(releasePath, "Google .Apis.*")) |
459 { | 459 { |
460 File.Copy(filePath, | 460 File.Copy(filePath, |
461 Path.Combine(outputDir, | 461 Path.Combine(outputDir, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
715 | 715 |
716 if (!Directory.Exists(path)) | 716 if (!Directory.Exists(path)) |
717 { | 717 { |
718 Directory.CreateDirectory(path); | 718 Directory.CreateDirectory(path); |
719 } | 719 } |
720 | 720 |
721 Environment.CurrentDirectory = path; | 721 Environment.CurrentDirectory = path; |
722 } | 722 } |
723 } | 723 } |
724 } | 724 } |
LEFT | RIGHT |