1
- // --------------------------------------------------------------------------------------
1
+ // --------------------------------------------------------------------------------------
2
2
// FAKE build script
3
3
// --------------------------------------------------------------------------------------
4
4
5
- #r @"packages/FAKE/tools/FakeLib.dll"
5
+ #r @"packages/build/ FAKE/tools/FakeLib.dll"
6
6
open Fake
7
7
open Fake.Git
8
8
open Fake.AssemblyInfoFile
@@ -12,7 +12,7 @@ open System
12
12
open System.IO
13
13
#if MONO
14
14
#else
15
- #load "packages/SourceLink.Fake/tools/Fake.fsx"
15
+ #load "packages/build/ SourceLink.Fake/tools/Fake.fsx"
16
16
open SourceLink
17
17
#endif
18
18
@@ -98,9 +98,9 @@ Target "AssemblyInfo" (fun _ ->
98
98
|> Seq.map getProjectDetails
99
99
|> Seq.iter (fun (projFileName, projectName, folderName, attributes) ->
100
100
match projFileName with
101
- | Fsproj -> CreateFSharpAssemblyInfo (folderName @@ "AssemblyInfo.fs") attributes
102
- | Csproj -> CreateCSharpAssemblyInfo ((folderName @@ "Properties") @@ "AssemblyInfo.cs") attributes
103
- | Vbproj -> CreateVisualBasicAssemblyInfo ((folderName @@ "My Project") @@ "AssemblyInfo.vb") attributes
101
+ | Fsproj -> CreateFSharpAssemblyInfo (folderName </> "AssemblyInfo.fs") attributes
102
+ | Csproj -> CreateCSharpAssemblyInfo ((folderName </> "Properties") </> "AssemblyInfo.cs") attributes
103
+ | Vbproj -> CreateVisualBasicAssemblyInfo ((folderName </> "My Project") </> "AssemblyInfo.vb") attributes
104
104
| Shproj -> ()
105
105
)
106
106
)
@@ -111,7 +111,7 @@ Target "AssemblyInfo" (fun _ ->
111
111
Target "CopyBinaries" (fun _ ->
112
112
!! "src/**/*.??proj"
113
113
-- "src/**/*.shproj"
114
- |> Seq.map (fun f -> ((System.IO.Path.GetDirectoryName f) @@ "bin/Release", "bin" @@ (System.IO.Path.GetFileNameWithoutExtension f)))
114
+ |> Seq.map (fun f -> ((System.IO.Path.GetDirectoryName f) </> "bin/Release", "bin" </> (System.IO.Path.GetFileNameWithoutExtension f)))
115
115
|> Seq.iter (fun (fromDir, toDir) -> CopyDir toDir fromDir (fun _ -> true))
116
116
)
117
117
@@ -187,7 +187,7 @@ Target "PublishNuget" (fun _ ->
187
187
// Generate the documentation
188
188
189
189
190
- let fakePath = "packages" @@ " FAKE" @@ "tools" @@ "FAKE.exe"
190
+ let fakePath = "packages" </> "build" </> " FAKE" </> "tools" </> "FAKE.exe"
191
191
let fakeStartInfo script workingDirectory args fsiargs environmentVars =
192
192
(fun (info: System.Diagnostics.ProcessStartInfo) ->
193
193
info.FileName <- System.IO.Path.GetFullPath fakePath
@@ -285,8 +285,8 @@ F# Project Scaffold ({0})
285
285
=========================
286
286
*)
287
287
"""
288
- let targetDir = "docs/content" @@ lang
289
- let targetFile = targetDir @@ "index.fsx"
288
+ let targetDir = "docs/content" </> lang
289
+ let targetFile = targetDir </> "index.fsx"
290
290
ensureDirectory targetDir
291
291
System.IO.File.WriteAllText(targetFile, System.String.Format(content, lang))
292
292
@@ -302,14 +302,14 @@ Target "AddLangDocs" (fun _ ->
302
302
303
303
let templateFileName = "template.cshtml"
304
304
let templateDir = "docs/tools/templates"
305
- let langTemplateDir = templateDir @@ lang
306
- let langTemplateFileName = langTemplateDir @@ templateFileName
305
+ let langTemplateDir = templateDir </> lang
306
+ let langTemplateFileName = langTemplateDir </> templateFileName
307
307
308
308
if System.IO.File.Exists(langTemplateFileName) then
309
309
failwithf "Documents for specified language '%s' have already been added." lang
310
310
311
311
ensureDirectory langTemplateDir
312
- Copy langTemplateDir [ templateDir @@ templateFileName ]
312
+ Copy langTemplateDir [ templateDir </> templateFileName ]
313
313
314
314
createIndexFsx lang)
315
315
)
@@ -328,7 +328,7 @@ Target "ReleaseDocs" (fun _ ->
328
328
Branches.push tempDocsDir
329
329
)
330
330
331
- #load "paket-files/fsharp/FAKE/modules/Octokit/Octokit.fsx"
331
+ #load "paket-files/build/ fsharp/FAKE/modules/Octokit/Octokit.fsx"
332
332
open Octokit
333
333
334
334
Target "Release" (fun _ ->
0 commit comments