Last change
on this file since 37490 was 37490, checked in by davidb, 14 months ago |
Changes after testing on cygwin
|
-
Property svn:executable
set to
*
|
File size:
849 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | OS_UPPERCAPS=`uname -s | tr '[:lower:]' '[:upper:]'`
|
---|
4 | OS_LOWERCAPS=`uname -s | tr '[:upper:]' '[:lower:]'`
|
---|
5 |
|
---|
6 | version=16.13.2
|
---|
7 | installed_dir=node-${OS_LOWERCAPS}-64bit
|
---|
8 |
|
---|
9 | tar xvzf node-v${version}-linux-x64.tar.gz \
|
---|
10 | && mv node-v${version}-linux-x64 $installed_dir
|
---|
11 |
|
---|
12 | if [ $? = 0 ] ; then
|
---|
13 | echo ""
|
---|
14 | echo "Untarred NodeJS $version and renamed the directory to:"
|
---|
15 | echo " $installed_dir"
|
---|
16 | fi
|
---|
17 |
|
---|
18 |
|
---|
19 | os_full_lc=`uname -s | tr '[:upper:]' '[:lower:]'`
|
---|
20 | os_root=${os_full_lc%%_*}
|
---|
21 |
|
---|
22 | #if [ "x$os_root" = "xcygwin" ] ; then
|
---|
23 | # if [ ! -x $installed_dir/node.exe ] ; then
|
---|
24 | # echo "" >&2
|
---|
25 | # echo "**** Note ****" >&2
|
---|
26 | # echo "Under Cygwin, the programs in the 'bin' directory often lack" >&2
|
---|
27 | # echo "execute permissions. This can be addressed with:" >&2
|
---|
28 | # echo " chmod a+x $installed_dir/*.{exe,bat,cmd} $installed_dir/{npm,npx}" >&2
|
---|
29 | # fi
|
---|
30 | #fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.