Welcome to mirror list, hosted at ThFree Co, Russian Federation.

osx-dist.sh « tools - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44849748bcce066433523375927b606f2c9b434b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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-$VERSION.pkg