Browse Source

build: use do_not_edit variable where possible

We should not use hardcoded string to warn users about
file was generated by configure script. Since we already
have do_not_edit variable we can use it

PR-URL: https://github.com/nodejs/node/pull/12610
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
v6
Ruslan Bekenev 8 years ago
committed by Anna Henningsen
parent
commit
78e00631dd
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 3
      configure

3
configure

@ -1378,8 +1378,7 @@ if options.prefix:
config = '\n'.join(map('='.join, config.iteritems())) + '\n' config = '\n'.join(map('='.join, config.iteritems())) + '\n'
write('config.mk', write('config.mk', do_not_edit + config)
'# Do not edit. Generated by the configure script.\n' + config)
gyp_args = [sys.executable, 'tools/gyp_node.py', '--no-parallel'] gyp_args = [sys.executable, 'tools/gyp_node.py', '--no-parallel']

Loading…
Cancel
Save