blob: b99276d5a28e493aba59c2cc4021af6259fa0413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/sh
#
# //node/tools/latest-version - retrieve the latest node version from the IN
#
set -euf
# cd //node
cd $(readlink -f $(dirname $0)/..)
# PATH prepend //util/bin
export PATH="$PWD/../util/bin${PATH+:$PATH}"
# TODO punani install executable: curl
curl -fsS http://nodejs.org/ |
hrefs |
sed -n 's:.*node-v\([0-9.]\+\)\.tar\.gz:\1:p' |
sort |
tail -n 1
|