source: gs3-extensions/selfcontained-nodejs/trunk/SETUP.bat@ 37657

Last change on this file since 37657 was 37531, checked in by davidb, 15 months ago

Windows DOS version to get going with NodeJS

  • Property svn:executable set to *
File size: 743 bytes
Line 
1@echo off
2
3setlocal
4
5set package_name=NodeJS
6set node_dir=nodejs-windows-64bit
7
8set full_node_dir=%CD%\%node_dir%
9
10set OS_ALLCAPS=WINDOWS
11
12if not exist %full_node_dir% (
13 echo. >&2
14 echo In seting up %package_name%, did not find directory: >&2
15 echo %full_node_dir% >&2
16 echo. >&2
17 echo Have you run ./PREPARE-%OS_ALLCAPS%.bat? >&2
18 echo Exiting... >&2
19 echo. >&2
20 exit /b 0
21)
22
23set NODE_HOME=%full_node_dir%
24set "PATH=%NODE_HOME%;%PATH%"
25
26REM For details on setting multiple vars, see:
27REM https://stackoverflow.com/questions/15494688/batch-script-make-setlocal-variable-accessed-by-other-batch-files
28
29endlocal & (
30 set NODE_HOME=%NODE_HOME%
31 set "PATH=%PATH%"
32)
33
34echo + Set NODE_HOME and updated PATH
35
Note: See TracBrowser for help on using the repository browser.