Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit c140fb9

Browse files
committedMay 26, 2015
Fix install.sh for *nix #7
1 parent 969f214 commit c140fb9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎install.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ if errorlevel 1 (
1414

1515
:FAKEINSTALLED
1616

17-
packages\FAKE\tools\FAKE.exe build.fsx %*
17+
packages\FAKE\tools\FAKE.exe install.fsx %*
1818

‎build.fsx ‎install.fsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// include Fake lib
2-
#r @"packages\FAKE\tools\FakeLib.dll"
2+
#r "packages/FAKE/tools/FakeLib.dll"
33
open Fake
44
open System
55
open System.IO
66
open System.Net
77
open System.Text.RegularExpressions
88

9-
let homePath =
9+
let homeVimPath =
1010
if Environment.OSVersion.Platform = PlatformID.Unix || Environment.OSVersion.Platform = PlatformID.MacOSX then
11-
Environment.GetEnvironmentVariable("HOME")
12-
else Environment.ExpandEnvironmentVariables("%HOMEDRIVE%%HOMEPATH%")
11+
Environment.GetEnvironmentVariable("HOME") @@ ".vim"
12+
else Environment.ExpandEnvironmentVariables("%HOMEDRIVE%%HOMEPATH%") @@ "vimfiles"
1313

14-
let vimInstallDir = homePath @@ "vimfiles/bundle/fsharpbinding-vim"
14+
let vimInstallDir = homeVimPath @@ "bundle/fsharpbinding-vim"
1515

1616
let vimBinDir = __SOURCE_DIRECTORY__ @@ "ftplugin/bin"
1717
let ftpluginDir = __SOURCE_DIRECTORY__ @@ "ftplugin"

‎install.sh

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if [ -e ./packages/FAKE/tools/Fake.exe ]
1+
if ! [ -e ./packages/FAKE/tools/Fake.exe ]
22
then
33
mono paket.bootstrapper.exe
44
exit_code=$?
@@ -13,4 +13,4 @@ then
1313
fi
1414
fi
1515

16-
mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
16+
mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO install.fsx

0 commit comments

Comments
 (0)
This repository has been archived.