Skip to content

Commit

Permalink
Binary compile notes and script
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 8, 2012
1 parent 07f0a36 commit 4a899f6
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`
42 changes: 42 additions & 0 deletions build-binaries.sh
Original file line number Diff line number Diff line change
@@ -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.