Changeset 37490


Ignore:
Timestamp:
2023-03-13T23:51:09+13:00 (14 months ago)
Author:
davidb
Message:

Changes after testing on cygwin

Location:
gs3-extensions/selfcontained-nodejs/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/selfcontained-nodejs/trunk/PREPARE-CYGWIN.sh

    r37488 r37490  
    33version=-v16.13.2
    44
     5if [ -d node-windows-64bit ] ; then
     6    /bin/rm -rf node-windows-64bit
     7fi
    58
    69unzip node${version}-win-x64.zip \
    710    && mv node${version}-win-x64 node-windows-64bit
     11
     12chmod a+x node-windows-64bit/*.{exe,bat,cmd} node-windows-64bit/{npm,npx}
    813
    914if [ $? = 0 ] ; then
  • gs3-extensions/selfcontained-nodejs/trunk/PREPARE-LINUX.sh

    r36900 r37490  
    2020os_root=${os_full_lc%%_*}
    2121
    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
     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
  • gs3-extensions/selfcontained-nodejs/trunk/SETUP.sh

    r37489 r37490  
    33OS_LOWERCASE=`uname -s | tr '[:upper:]' '[:lower:]' | sed 's/_.*$//'`
    44
    5 if test $OS_LOWERCAPS = "cygwin" ; then
    6     OS_UPPERCAPS=WINDOWS
    7     OS_LOWERCAPS=windows
     5if test $OS_LOWERCASE = "cygwin" ; then
     6    OS_UPPERCASE=WINDOWS
     7    OS_LOWERCASE=windows
    88fi
    99
    1010package_name="NodeJS"
    11 installed_dir=node-${OS_LOWERCAPS}-64bit
     11installed_dir=node-${OS_LOWERCASE}-64bit
    1212
    1313full_installed_dir="$PWD/$installed_dir"
     
    2525
    2626NODE_HOME="$full_installed_dir"                ; export NODE_HOME
    27 NODE_PATH=$full_installed_dir/lib/node_modules ; export NODE_PATH
    28 PATH="$NODE_HOME/bin:$PATH"                    ; export PATH
     27
     28if [ "x$OS_LOWERCASE" = "xwindows" ] ; then
     29    PATH="$NODE_HOME:$PATH"                    ; export PATH   
     30else
     31    NODE_PATH=$full_installed_dir/lib/node_modules ; export NODE_PATH
     32    PATH="$NODE_HOME/bin:$PATH"                    ; export PATH   
     33fi
    2934
    3035echo + "Set NODE_HOME, NODE_PATH and updated PATH"
Note: See TracChangeset for help on using the changeset viewer.