diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-12-02 02:54:14 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-12-02 02:55:50 +0100 |
commit | 22965da799e843525a1146ca37306dc4c740ffc1 (patch) | |
tree | 54d6bce3b98f774c8666be2d3c8d45df8bc60a91 /tools/install.py | |
parent | 4d0fcd515fe0a38127136a751e5d1517b250fa80 (diff) | |
download | node-new-22965da799e843525a1146ca37306dc4c740ffc1.tar.gz |
install: fix freebsd man page location
Man pages go into $PREFIX/man on FreeBSD, not $PREFIX/share/man.
Diffstat (limited to 'tools/install.py')
-rwxr-xr-x | tools/install.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/install.py b/tools/install.py index 028e5ca73b..78d0e5c14b 100755 --- a/tools/install.py +++ b/tools/install.py @@ -191,7 +191,6 @@ def files(action): 'deps/uv/include/uv-private/uv-unix.h', 'deps/uv/include/uv-private/uv-win.h'], 'include/node/uv-private/') - action(['doc/node.1'], 'share/man/man1/') action(['out/Release/node'], 'bin/node') # install unconditionally, checking if the platform supports dtrace doesn't @@ -199,6 +198,11 @@ def files(action): # with dtrace support now (oracle's "unbreakable" linux) action(['src/node.d'], 'lib/dtrace/') + if 'freebsd' in sys.platform: + action(['doc/node.1'], 'man/man1/') + else: + action(['doc/node.1'], 'share/man/man1/') + if 'true' == variables.get('node_install_waf'): waf_files(action) if 'true' == variables.get('node_install_npm'): npm_files(action) |