Skip to content

Commit

Permalink
give the download url to vulcan directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jun 25, 2012
1 parent 4986728 commit cc93b19
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions support/package_nodejs
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cc93b19

Please sign in to comment.