source: gs3-extensions/selfcontained-nodejs/trunk/PREPARE-LINUX.sh

Last change on this file was 38934, checked in by davidb, 2 weeks ago

Option to bump up to v18.18.0 LTS, but currently still working with v16 by default

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