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
566 B
Bash
Raw Normal View History

#!/bin/sh
TOOLS=`dirname $0`
ROOT=$TOOLS/..
2011-11-11 03:16:51 +01:00
VERSION=`python $TOOLS/msvs/msi/getnodeversion.py < $ROOT/src/node_version.h`
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-$VERSION.pkg