Commit Graph
5 Commits
Author SHA1 Message Date
Marc Poulhiès b145fd6564 Do not use system node by error
If system's node is overriden by something in PATH, having NODE_DIR
empty will cause the script to still use node found in /bin/.
Only consider the first case if NODE_DIR is not empty.
2019-04-30 15:04:28 +02:00
RabsRincon 47b65b15d9 Upgrade to latest Node LTS (10) 2019-04-12 15:32:31 +02:00
Ruslan Garipov 42c9b269f0 Make ``find'' scripts compatible w/ the Bourne sh
By default FreeBSD does not have the Bourne-again shell (Bash)
installed.  Therefore, the system fails to execute two ``find'' scripts
(etc/scripts/find-node and etc/scripts/find-yarn) running by the
Makefile within the `.node-bin` and `.yarn-bin` targets.

I see nothing Bash-specific in those scripts.  Also I believe that
`[[ expression ]]` commands in those particular cases can be safely
replaced with the `test` built-in commands.

With these changes I can now run a local ``Compiler explorer'' instance
on FreeBSD.

Signed-off-by: Ruslan Garipov <ruslanngaripov@gmail.com>
2019-01-31 20:24:00 +05:00
Matt Godbolt d92ef4f2b6 Prevent creation of an empty .node-bin or .yarn-bin if the version check fails. Helps with #850 2018-03-05 08:14:17 -06:00
Matt Godbolt f8468e5d92 Use a local-installed yarn. Refactor all the 'find node' stuff out of the Makefile 2018-02-10 17:10:56 -06:00