Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tools: backport tools/install.py for headers
Backport the tools/install.py changes from 628a3ab that were missed
when 6fb0b92 backported the corresponding changes to the Makefile to
build the headers only archive.

PR-URL: #4149
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
  • Loading branch information
richardlau authored and rvagg committed Feb 8, 2016
commit 02bc6f35368264a8cb00baca751e529ae74c70bb
12 changes: 10 additions & 2 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def files(action):

if 'true' == variables.get('node_install_npm'): npm_files(action)

headers(action)

def headers(action):
action([
'common.gypi',
'config.gypi',
Expand Down Expand Up @@ -183,8 +186,13 @@ def run(args):
if len(args) > 2: dst_dir = abspath(args[2] + '/' + dst_dir)

cmd = args[1] if len(args) > 1 else 'install'
if cmd == 'install': return files(install)
if cmd == 'uninstall': return files(uninstall)
if os.environ.get('HEADERS_ONLY'):
if cmd == 'install': return headers(install)
if cmd == 'uninstall': return headers(uninstall)
else:
if cmd == 'install': return files(install)
if cmd == 'uninstall': return files(uninstall)

raise RuntimeError('Bad command: %s\n' % cmd)

if __name__ == '__main__':
Expand Down