0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools/osx-dist.sh

29 lines
531 B
Bash
Raw Normal View History

#!/bin/sh
TOOLS=`dirname $0`
ROOT=$TOOLS/..
2011-11-11 21:08:24 +01:00
VERSION=`python $TOOLS/getnodeversion.py`
2011-11-11 03:16:51 +01:00
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
2011-11-11 03:16:51 +01:00
./configure --prefix=/usr/local
make
make install DESTDIR="$CONTENTS"
popd # $ROOT
2011-11-11 03:16:51 +01:00
PKGID="$VENDOR.$NAME-$VERSION"
packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
$packagemaker \
--id "$PKGID" \
--doc $PMDOC \
--out $CONTENTS/node-v$VERSION.pkg