annotate Applications/Samples/get-requirements-windows.ps1 @ 920:5ca418d6579e refactor-viewport-controller

Close branch refactor-viewport-controller.
author Alain Mazy <am@osimis.io>
date Fri, 19 Jul 2019 14:15:49 +0000
parents 4eccf698e52f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
653
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
1
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
2 if ($true) {
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
3
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
4 Write-Error "This script is obsolete. Please work under WSL and run build-wasm.sh"
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
5
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
6 } else {
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
7
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
8 param(
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
9 [IO.DirectoryInfo] $EmsdkRootDir = "C:\Emscripten",
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
10 [bool] $Overwrite = $false
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
11 )
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
12
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
13 if (Test-Path -Path $EmsdkRootDir) {
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
14 if( $Override) {
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
15 Remove-Item -Path $EmsdkRootDir -Force -Recurse
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
16 } else {
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
17 throw "The `"$EmsdkRootDir`" folder may not exist! Use the Overwrite flag to bypass this check."
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
18 }
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
19 }
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
20
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
21 # TODO: detect whether git is installed
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
22 # choco install -y git
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
23
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
24 Write-Host "Will retrieve the Emscripten SDK to the `"$EmsdkRootDir`" folder"
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
25
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
26 $EmsdkParentDir = split-path -Parent $EmsdkRootDir
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
27 $EmsdkRootName = split-path -Leaf $EmsdkRootDir
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
28
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
29 Push-Location $EmsdkParentDir
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
30
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
31 git clone https://github.com/juj/emsdk.git $EmsdkRootName
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
32 cd $EmsdkRootName
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
33
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
34 git pull
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
35
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
36 ./emsdk install latest
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
37
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
38 ./emsdk activate latest
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
39
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
40 echo "INFO: the ~/.emscripten file has been configured for this installation of Emscripten."
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
41
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
42 Write-Host "emsdk is now installed in $EmsdkRootDir"
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
43
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
44 Pop-Location
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
45
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
46 }
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
47
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
48
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
49
4eccf698e52f Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents: 445
diff changeset
50