Lines 1-6
Link Here
|
1 |
--- install.sh.orig 2016-12-13 16:08:57 UTC |
1 |
--- install.sh.orig 2017-01-10 13:55:39.983263000 +0000 |
2 |
+++ install.sh |
2 |
+++ install.sh 2017-01-10 14:01:20.665343000 +0000 |
3 |
@@ -32,48 +32,14 @@ |
3 |
@@ -15,48 +15,14 @@ |
4 |
"--help"|"-h"|"help"|"h") |
4 |
"--help"|"-h"|"help"|"h") |
5 |
echo "Nim installation script" |
5 |
echo "Nim installation script" |
6 |
echo "Usage: [sudo] sh install.sh DIR" |
6 |
echo "Usage: [sudo] sh install.sh DIR" |
Lines 19-25
Link Here
|
19 |
- libdir=/usr/lib/nim |
19 |
- libdir=/usr/lib/nim |
20 |
- docdir=/usr/share/nim/doc |
20 |
- docdir=/usr/share/nim/doc |
21 |
- datadir=/usr/share/nim/data |
21 |
- datadir=/usr/share/nim/data |
22 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.15.2" |
22 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.16.0" |
23 |
- ;; |
23 |
- ;; |
24 |
- "/usr/local/bin") |
24 |
- "/usr/local/bin") |
25 |
- bindir=/usr/local/bin |
25 |
- bindir=/usr/local/bin |
Lines 27-33
Link Here
|
27 |
- libdir=/usr/local/lib/nim |
27 |
- libdir=/usr/local/lib/nim |
28 |
- docdir=/usr/local/share/nim/doc |
28 |
- docdir=/usr/local/share/nim/doc |
29 |
- datadir=/usr/local/share/nim/data |
29 |
- datadir=/usr/local/share/nim/data |
30 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.15.2" |
30 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.16.0" |
31 |
- ;; |
31 |
- ;; |
32 |
- "/opt") |
32 |
- "/opt") |
33 |
- bindir="/opt/nim/bin" |
33 |
- bindir="/opt/nim/bin" |
Lines 35-41
Link Here
|
35 |
- libdir="/opt/nim/lib" |
35 |
- libdir="/opt/nim/lib" |
36 |
- docdir="/opt/nim/doc" |
36 |
- docdir="/opt/nim/doc" |
37 |
- datadir="/opt/nim/data" |
37 |
- datadir="/opt/nim/data" |
38 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.15.2" |
38 |
- nimbleDir="/opt/nimble/pkgs/compiler-0.16.0" |
39 |
- mkdir -p /opt/nim |
39 |
- mkdir -p /opt/nim |
40 |
- mkdir -p $bindir |
40 |
- mkdir -p $bindir |
41 |
- mkdir -p $configdir |
41 |
- mkdir -p $configdir |
Lines 54-56
Link Here
|
54 |
nimbleDir="$1/nim" |
54 |
nimbleDir="$1/nim" |
55 |
mkdir -p $1/nim |
55 |
mkdir -p $1/nim |
56 |
mkdir -p $bindir |
56 |
mkdir -p $bindir |
|
|
57 |
@@ -823,13 +789,6 @@ |
58 |
else |
59 |
echo "Nim installation script" |
60 |
echo "Usage: [sudo] sh install.sh DIR" |
61 |
- echo "Where DIR may be:" |
62 |
- echo " /usr/bin" |
63 |
- echo " /usr/local/bin" |
64 |
- echo " /opt" |
65 |
- echo " <some other dir> (treated similar to '/opt')" |
66 |
- echo "To deinstall, use the command:" |
67 |
- echo "sh deinstall.sh DIR" |
68 |
exit 1 |
69 |
fi |
70 |
|