forked from MaynardMiner/SWARM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install.ps1
executable file
·130 lines (112 loc) · 3.64 KB
/
Install.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<#
SWARM is open-source software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SWARM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#>
Set-Location (Split-Path $script:MyInvocation.MyCommand.Path)
##Check for libc
Start-Process ".\Build\Unix\Hive\libc.sh" -wait
Set-Location ".\Build"
if(Test-Path ".\version")
{
Copy-Item ".\version" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x version"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\get-oc")
{
Copy-Item ".\get-oc" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x get-oc"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\benchmark")
{
Copy-Item ".\benchmark" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x benchmark"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\clear_profits")
{
Copy-Item ".\clear_profits" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x clear_profits"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\dir.sh")
{
Copy-Item ".\dir.sh" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x dir.sh"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\stats")
{
Copy-Item ".\stats" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x stats"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\active")
{
Copy-Item ".\active" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x active"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\get-screen")
{
Copy-Item ".\get-screen" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x get-screen"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\mine")
{
Copy-Item ".\mine" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x mine"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\logdata")
{
Copy-Item ".\logdata" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x logdata"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\pidinfo")
{
Copy-Item ".\pidinfo" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x pidinfo"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\dir.sh")
{
Copy-Item ".\dir.sh" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x dir.sh"
Set-Location "/"
Set-Location $CmdDir
}