Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 49 lines (37 sloc) 0.946 kB
#!/bin/sh
set -e
node_version="$1"
if [ "$node_version" == "" ]; then
echo "usage: $0 VERSION"
exit 1
fi
if [ "$AWS_ID" == "" ]; then
echo "must set AWS_ID"
exit 1
fi
if [ "$AWS_SECRET" == "" ]; then
echo "must set AWS_SECRET"
exit 1
fi
if [ "$S3_BUCKET" == "" ]; then
echo "must set S3_BUCKET"
exit 1
fi
basedir="$( cd -P "$( dirname "$0" )" && pwd )"
# make a temp directory
tempdir="$( mktemp -t node_XXXX )"
rm -rf $tempdir
mkdir -p $tempdir
cd $tempdir
# build and package nodejs for heroku
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
# generate manifest
$basedir/manifest nodejs
Jump to Line
Something went wrong with that request. Please try again.