Skip to content
This repository
Browse code

give the download url to vulcan directly

  • Loading branch information...
commit cc93b19aa1e6ff0ec348cfbb1682cee6565ccca0 1 parent 4986728
David Dollar authored June 25, 2012

Showing 1 changed file with 6 additions and 25 deletions. Show diff stats Hide diff stats

  1. 31  support/package_nodejs
31  support/package_nodejs
@@ -32,36 +32,17 @@ rm -rf $tempdir
32 32
 mkdir -p $tempdir
33 33
 cd $tempdir
34 34
 
35  
-# download and extract node
36  
-curl http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz -o node.tgz
37  
-
38  
-# try old-style download url if it doesnt exist
39  
-if [ "$(grep -i "404 not found" node.tgz)" != "" ]; then
40  
-  curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz
41  
-fi
42  
-
43  
-tar xzvf node.tgz
44  
-
45  
-# go into node dir
46  
-cd node-v${node_version}
47  
-
48 35
 # build and package nodejs for heroku
49  
-vulcan build -v -o $tempdir/node-${node_version}.tgz
  36
+vulcan build -v \
  37
+  -n node \
  38
+  -c "cd node-v${node_version} && ./configure --prefix=/app/vendor/node && make install" \
  39
+  -p /app/vendor/node \
  40
+  -s http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz \
  41
+  -o $tempdir/node-${node_version}.tgz
50 42
 
51 43
 # upload nodejs to s3
52 44
 $basedir/aws/s3 put $S3_BUCKET \
53 45
   nodejs-${node_version}.tgz $tempdir/node-${node_version}.tgz
54 46
 
55  
-# go into scons
56  
-cd tools/scons
57  
-
58  
-# package scons
59  
-scons_version=$(ls | grep "scons-local" | cut -d- -f3)
60  
-tar czvf $tempdir/scons-${scons_version}.tgz *
61  
-
62  
-# upload scons to s3
63  
-$basedir/aws/s3 put $S3_BUCKET \
64  
-  scons-${scons_version}.tgz $tempdir/scons-${scons_version}.tgz
65  
-
66 47
 # generate manifest
67 48
 $basedir/manifest nodejs

0 notes on commit cc93b19

Please sign in to comment.
Something went wrong with that request. Please try again.