0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/tools/osx-dist.sh

29 lines
531 B
Bash
Executable File

#!/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