install: fix openbsd man page location
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 17 Dec 2012 11:05:14 +0000 (12:05 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 17 Dec 2012 11:05:14 +0000 (12:05 +0100)
Man pages go into $PREFIX/man on OpenBSD, not $PREFIX/share/man.

tools/install.py

index 78d0e5c..51b7911 100755 (executable)
@@ -198,7 +198,7 @@ def files(action):
   # with dtrace support now (oracle's "unbreakable" linux)
   action(['src/node.d'], 'lib/dtrace/')
 
-  if 'freebsd' in sys.platform:
+  if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
     action(['doc/node.1'], 'man/man1/')
   else:
     action(['doc/node.1'], 'share/man/man1/')