Skip to content

Commit 9180611

Browse files
committed
add install script
1 parent 0bf8a0d commit 9180611

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

install.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
# Usage: PREFIX=/usr/local ./install.sh
3+
#
4+
# Installs node-build under $PREFIX.
5+
6+
set -e
7+
8+
cd "$(dirname "$0")"
9+
10+
if [ -z "${PREFIX}" ]; then
11+
PREFIX="/usr/local"
12+
fi
13+
14+
SHARE_PATH="${PREFIX}/share/node-build"
15+
16+
mkdir -p "$SHARE_PATH"
17+
18+
install -p -m 0644 share/node-build/* "$SHARE_PATH"

0 commit comments

Comments
 (0)