Skip to content
Browse files

Adding init script to copy giles executor to the solution dir on inst…

…all.
  • Loading branch information...
1 parent c284348 commit 7a3f24033dbb199ac0011cb4171f501f0113d69e Ian Davis committed Sep 1, 2011
Showing with 20 additions and 0 deletions.
  1. +8 −0 giles.ps1
  2. +9 −0 init.ps1
  3. +3 −0 rakefile.rb
View
8 giles.ps1
@@ -0,0 +1,8 @@
+param(
+ [Parameter(Position=0,Mandatory=0)]
+ [string]$solutionFile = "$(Split-Path $pwd -leaf).sln"
+)
+
+$solutionFile = Resolve-Path $solutionFile
+$giles = @(Get-ChildItem .\* -recurse -include giles.exe)[0].FullName
+& $giles -s $solutionFile
View
9 init.ps1
@@ -0,0 +1,9 @@
+param($rootPath, $toolsPath, $package, $project)
+
+$gilesRunnerFrom = $toolsPath + "\giles.ps1"
+$gilesRunnerTo = "giles.ps1"
+
+if(!(Test-Path $gilesRunnerTo))
+{
+ Copy-Item $gilesRunnerFrom $gilesRunnerTo
+}
View
3 rakefile.rb
@@ -43,7 +43,10 @@
task :prepPackage do
FileSystem.DeleteDirectory("deploy")
FileSystem.EnsurePath("deploy/package")
+ FileSystem.EnsurePath("deploy/package/tools")
FileSystem.CopyFiles("build/*", "deploy/package")
+ FileSystem.CopyFiles("giles.ps1", "deploy/package/tools")
+ FileSystem.CopyFiles("init.ps1", "deploy/package/tools")
end
desc "Create the nuspec"

0 comments on commit 7a3f240

Please sign in to comment.
Something went wrong with that request. Please try again.