[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/docs/kss/scripts/ -> kss-node-check.sh (source)

   1  #!/usr/bin/env bash
   2  
   3  if command -v npm > /dev/null ; then
   4    npm install
   5  else
   6    # If npm isn't installed, but kss-node is, exit normally.
   7    # This allows setting it up on one machine, and running it on
   8    # another (e.g. Tools Labs execution nodes) that doesn't have npm
   9    # installed.  However, "npm install" still needs to be run
  10    # occasionally to keep kss updated.
  11  
  12    KSS_NODE="$BASH_SOURCE%/*}/../node_modules/.bin/kss-node"
  13    if ! [ -x "$KSS_NODE" ] ; then
  14      echo "Neither kss-node nor npm are installed."
  15      echo "To install npm, see http://nodejs.org/"
  16      echo "When npm is installed, the Makefile can automatically"
  17      echo "install kss-node."
  18      exit 1
  19    fi
  20  fi


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1