Permalink
Browse files

bootstrap node

  • Loading branch information...
ddollar committed Jan 13, 2012
1 parent 55670d6 commit 1955731f8fc859c72881bc3119795a83d9fe484e
Showing with 15 additions and 1 deletion.
  1. +15 −1 bin/compile
View
@@ -60,7 +60,7 @@ function resolve_version() {
args=""
for version in $available_versions; do args="${args} -v \"${version}\""; done
for version in $requested_version; do args="${args} -r \"${version}\""; done
eval $VENDORED_NODE/bin/node $LP_DIR/vendor/node-semver/bin/semver ${args} | tail -r | head -n1
eval $bootstrap_node/bin/node $LP_DIR/vendor/node-semver/bin/semver ${args} | tail -r | head -n1
fi
}
@@ -78,6 +78,20 @@ function package_resolve_version() {
echo "rv: ${resolved_version}"
}
function package_download() {
engine="$1"
version="$2"
location="$3"
mkdir -p $location
package="http://${S3_BUCKET}.s3.amazonaws.com/$engine-$version.tgz"
echo "downloading $engine $version"
curl $package -s -o - | tar xzvf - -C $location
}
bootstrap_node=$(mktmpdir bootstrap_node)
download_package "nodejs", "0.4.7", $bootstrap_node
declare -A engine_versions
declare -A engine_defaults
declare -A engine_requests

0 comments on commit 1955731

Please sign in to comment.