#!/bin/sh TOOLS=`dirname $0` ROOT=$TOOLS/.. VERSION=`python $TOOLS/getnodeversion.py` CONTENTS=$ROOT/dist-osx PMDOC=$TOOLS/osx-pkg.pmdoc VENDOR='org.nodejs' NAME=NodeJS # go build it in the root of the git repository pushd $ROOT ./configure --prefix=/usr/local make make install DESTDIR="$CONTENTS" popd # $ROOT PKGID="$VENDOR.$NAME-$VERSION" packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker $packagemaker \ --id "$PKGID" \ --doc $PMDOC \ --out $CONTENTS/node-v$VERSION.pkg