install: extract *all* .h files

Should prevent any problems with selectively picking header files to install.
This commit is contained in:
Nathan Rajlich 2012-03-08 15:10:19 -08:00
parent ed820a267c
commit accd1f69de

View file

@ -298,11 +298,7 @@ function install (gyp, argv, callback) {
function valid (file) {
// header files
return minimatch(file, 'src/*.h')
|| minimatch(file, 'deps/http_parser/**/*.h')
|| minimatch(file, 'deps/openssl/openssl/include/**/*.h')
|| minimatch(file, 'deps/v8/include/**/*.h')
|| minimatch(file, 'deps/uv/include/**/*.h')
|| minimatch(file, 'deps/zlib/**/*.h')
|| minimatch(file, 'deps/**/*.h')
// non-legacy versions of node also extract the gyp build files
|| (!isLegacy &&
(minimatch(file, '*.gypi')