Permalink
Browse files

Binary compile notes and script

  • Loading branch information...
1 parent 07f0a36 commit 4a899f686e7e3a38332c9ebd5a2fad00bf0da24f @kpdecker committed Aug 8, 2012
Showing with 51 additions and 0 deletions.
  1. +9 −0 README.md
  2. +42 −0 build-binaries.sh
View
@@ -1,3 +1,12 @@
# heroku-buildpack-lumbar
Lumbar buildpack for heroku.
+
+## Recompiling the vulcan package
+
+1. Download the latest version of node.
+2. `tar zxvf $nodePackage`
+3. `cd $nodePackageDir`
+4. `vulcan create $name`
+5. `vulcan build`
+6. `./build-binaries.sh $vulcanPackage`
View
@@ -0,0 +1,42 @@
+#! /bin/bash
+
+# fail fast
+set -e
+
+WORK_DIR=/tmp/buildpack-lumbar
+NODE_PACKAGE=$1
+
+LUMBAR_VERSION=`npm info lumbar | grep version: | sed "s/.*version: '\(.*\)'.*/\1/"`
+LUMBAR_PACKAGE=lumbar-$LUMBAR_VERSION.tgz
+
+rm -rf $WORK_DIR
+mkdir -p $WORK_DIR
+pushd $WORK_DIR
+
+tar zxf $NODE_PACKAGE
+cd lib/node_modules
+npm install lumbar
+
+popd
+
+if [ -e $LUMBAR_PACKAGE ]; then
+ rm $LUMBAR_PACKAGE
+fi
+echo $WORK_DIR
+COPYFILE_DISABLE=1 tar \
+ --exclude "*/lumbar/docs/**" \
+ --exclude "*/lumbar/test/**" \
+ --exclude "*/htmlparser/tests/**" \
+ --exclude "*/htmlparser/testdata/**" \
+ --exclude "*/jsdom-nocontextifiy/test/**" \
+ --exclude "*/nib/iconic/**" \
+ --exclude "*/nib/test/**" \
+ --exclude "*/npm/doc/**" \
+ --exclude "*/npm/html/**" \
+ --exclude "*/npm/man/**" \
+ --exclude "*/npm/test/**" \
+ --exclude "*/request/tests/**" \
+ --exclude "*/stylus-images/test/**" \
+ --exclude "*/uglify-js/test/**" \
+ --exclude "*/uglify-js/tmp/**" \
+ -cvz -f $LUMBAR_PACKAGE -C $WORK_DIR .

0 comments on commit 4a899f6

Please sign in to comment.