diff options
author | euer <root@euer.krebsco.de> | 2012-12-20 17:37:49 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-12-20 17:37:49 +0100 |
commit | 668d0a3d27a0f911d3446fcc1e48eb32b2b0a83d (patch) | |
tree | 3de04ac5b466dfd5a62dc3af188aff7353d45972 /node | |
parent | 97bd0fe6fd64ba77e9bcf092f6f84301d2953bae (diff) |
//node -> /dev/null
Diffstat (limited to 'node')
-rw-r--r-- | node/Makefile | 8 | ||||
-rwxr-xr-x | node/install | 79 | ||||
-rwxr-xr-x | node/tools/latest-version | 19 |
3 files changed, 0 insertions, 106 deletions
diff --git a/node/Makefile b/node/Makefile deleted file mode 100644 index cbfa1e4a..00000000 --- a/node/Makefile +++ /dev/null @@ -1,8 +0,0 @@ - -.PHONY: all install - -all: - @echo "You are made of stupid!"; exit 23 - -install: - ./install diff --git a/node/install b/node/install deleted file mode 100755 index 1284a73a..00000000 --- a/node/install +++ /dev/null @@ -1,79 +0,0 @@ -#! /bin/sh -# -# //node/install -# -# export version=X.Y.Z to install a specific version -# otherwise the latest upstream version will be determined and used -# -# export force=true to install even though it already seems to be installed -# -# export clean=true to first wipe any generated files -# -set -xeuf - -# cd //node -cd $(readlink -f $(dirname $0)) - -# PATH prepend //node/tools //util/bin -export PATH="$PWD/tools:$PWD/../util/bin${PATH+:$PATH}" - -if test "${force-false}" = true; then - : # skip check if it is already installed -else - if test -e ../bin/node; then - : '[32m//bin/node[m # is already installed' - exit - fi -fi - -if test "${clean-false}" = true; then - rm -fR src out -fi - -test -d src || mkdir -v src -cd src - -version=${version-`latest-version`} - -target=node-v$version - -distfile=$target.tar.gz - -download() { - curl -C - -so $distfile http://nodejs.org/dist/v$version/$distfile || - curl -C - -so $distfile http://nodejs.org/dist/$distfile || : -} -is_downloaded() { - gzip -t $distfile 2>/dev/null -} -if ! is_downloaded; then - download - if ! is_downloaded; then - rm -f $distfile - download - fi - if ! is_downloaded; then - rm -f $distfile - echo failed to download distfile - exit 1 - fi -fi - -if ! zcat $distfile | tar -x --keep-newer-files 2>/dev/null; then - rm -fR $target - zcat $distfile | tar -x -fi - -cd .. - -prefix=out/$target -mkdir -p $prefix -prefix=`readlink -f $prefix` - -cd src/$target -./configure --prefix=$prefix -CPPFLAGS=-Wno-unused-but-set-variable make -make install -cd ../.. - -ln -snf ../node/out/$target/bin/node ../bin/node diff --git a/node/tools/latest-version b/node/tools/latest-version deleted file mode 100755 index b99276d5..00000000 --- a/node/tools/latest-version +++ /dev/null @@ -1,19 +0,0 @@ -#! /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 |