Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

give the download url to vulcan directly

  • Loading branch information...
commit cc93b19aa1e6ff0ec348cfbb1682cee6565ccca0 1 parent 4986728
@ddollar ddollar authored
Showing with 6 additions and 25 deletions.
  1. +6 −25 support/package_nodejs
View
31 support/package_nodejs
@@ -32,36 +32,17 @@ rm -rf $tempdir
mkdir -p $tempdir
cd $tempdir
-# download and extract node
-curl http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz -o node.tgz
-
-# try old-style download url if it doesnt exist
-if [ "$(grep -i "404 not found" node.tgz)" != "" ]; then
- curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz
-fi
-
-tar xzvf node.tgz
-
-# go into node dir
-cd node-v${node_version}
-
# build and package nodejs for heroku
-vulcan build -v -o $tempdir/node-${node_version}.tgz
+vulcan build -v \
+ -n node \
+ -c "cd node-v${node_version} && ./configure --prefix=/app/vendor/node && make install" \
+ -p /app/vendor/node \
+ -s http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz \
+ -o $tempdir/node-${node_version}.tgz
# upload nodejs to s3
$basedir/aws/s3 put $S3_BUCKET \
nodejs-${node_version}.tgz $tempdir/node-${node_version}.tgz
-# go into scons
-cd tools/scons
-
-# package scons
-scons_version=$(ls | grep "scons-local" | cut -d- -f3)
-tar czvf $tempdir/scons-${scons_version}.tgz *
-
-# upload scons to s3
-$basedir/aws/s3 put $S3_BUCKET \
- scons-${scons_version}.tgz $tempdir/scons-${scons_version}.tgz
-
# generate manifest
$basedir/manifest nodejs
Please sign in to comment.
Something went wrong with that request. Please try again.