GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: backport tools/install.py for headers · nodejs/node@28ab7b0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • install.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/install.py‎

Copy file name to clipboardExpand all lines: tools/install.py
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def files(action):
139139

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

142+
headers(action)
143+
144+
def headers(action):
142145
action([
143146
'common.gypi',
144147
'config.gypi',
@@ -183,8 +186,13 @@ def run(args):
183186
if len(args) > 2: dst_dir = abspath(args[2] + '/' + dst_dir)
184187

185188
cmd = args[1] if len(args) > 1 else 'install'
186-
if cmd == 'install': return files(install)
187-
if cmd == 'uninstall': return files(uninstall)
189+
if os.environ.get('HEADERS_ONLY'):
190+
if cmd == 'install': return headers(install)
191+
if cmd == 'uninstall': return headers(uninstall)
192+
else:
193+
if cmd == 'install': return files(install)
194+
if cmd == 'uninstall': return files(uninstall)
195+
188196
raise RuntimeError('Bad command: %s\n' % cmd)
189197

190198
if __name__ == '__main__':

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.