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

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
3OS_UPPERCAPS=`uname -s | tr '[:lower:]' '[:upper:]'`
4OS_LOWERCAPS=`uname -s | tr '[:upper:]' '[:lower:]'`
5
6version=16.13.2
7installed_dir=node-${OS_LOWERCAPS}-64bit
8
9tar xvzf node-v${version}-linux-x64.tar.gz \
10 && mv node-v${version}-linux-x64 $installed_dir
11
12if [ $? = 0 ] ; then
13 echo ""
14 echo "Untarred NodeJS $version and renamed the directory to:"
15 echo " $installed_dir"
16fi
17
18
19os_full_lc=`uname -s | tr '[:upper:]' '[:lower:]'`
20os_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.