Last change
on this file since 36447 was 36447, checked in by davidb, 20 months ago |
Scripts in line with other selfcontained cli extensions
|
File size:
762 bytes
|
Line | |
---|
1 |
|
---|
2 | OS_UPPERCAPS=`uname -s | tr '[:lower:]' '[:upper:]'`
|
---|
3 | OS_LOWERCAPS=`uname -s | tr '[:upper:]' '[:lower:]'`
|
---|
4 |
|
---|
5 | package_name="NodeJS"
|
---|
6 | installed_dir=node-${OS_LOWERCAPS}-64bit
|
---|
7 |
|
---|
8 | full_installed_dir="$PWD/$installed_dir"
|
---|
9 |
|
---|
10 | if test ! -d "$full_installed_dir" ; then
|
---|
11 | echo "" >&2
|
---|
12 | echo "In seting up $package_name, did not find directory:" >&2
|
---|
13 | echo " $full_installed_dir" >&2
|
---|
14 | echo "" >&2
|
---|
15 | echo "Have you run ./PREPARE-${OS_ALLCAPS}.sh?" >&2
|
---|
16 | echo "Exiting..." >&2
|
---|
17 | echo "" >&2
|
---|
18 | return
|
---|
19 | fi
|
---|
20 |
|
---|
21 | NODE_HOME="$full_installed_dir" ; export NODE_HOME
|
---|
22 | NODE_PATH=$full_installed_dir/lib/node_modules ; export NODE_PATH
|
---|
23 | PATH="$NODE_HOME/bin:$PATH" ; export PATH
|
---|
24 |
|
---|
25 | echo + "Set NODE_HOME, NODE_PATH and updated PATH"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.