message: Add support to specify curl-for-windows tag via environment variable
diff: @@ -21,6 +21,7 @@ var execConfig = {
  var fileWithDepsTag = 'LIBCURL_VERSION_WIN_DEPS';
  var depsRepo = 'https://github.com/JCMais/curl-for-windows.git';
  +var envCurlForWindowsDepsVersionTag = process.env.NODE_LIBCURL_WINDEPS_TAG;
  // Check if we are on the root git dir. That is, someone is running this
  // directly from the node-libcurl repo.
  @@ -42,13 +43,16 @@ exec( 'git rev-parse --show-toplevel', execConfig, function( err, stdout, stderr
  function retrieveWinDeps() {
  var depsTag;
  + var fileExists = fs.existsSync( fileWithDepsTag );
  - if ( !fs.existsSync( fileWithDepsTag ) ) {
  - console.error( 'File: ', fileWithDepsTag, ' not found.' );
  - process.exit( 1 );
  + if ( !fileExists && !envCurlForWindowsDepsVersionTag ) {
  + console.error( 'File: ', fileWithDepsTag, ' not found, and no NODE_LIBCURL_WINDEPS_TAG environment variable found.' );
  + return process.exit( 1 );
  }
  - depsTag = fs.readFileSync( fileWithDepsTag ).toString().replace(/\n|\s/g, '');
  + depsTag = envCurlForWindowsDepsVersionTag
  + ? envCurlForWindowsDepsVersionTag.trim()
  + : fs.readFileSync( fileWithDepsTag ).toString().replace(/\n|\s/g, '');
  exec( 'git clone --branch ' + depsTag + ' ' + depsRepo, execConfig, function ( err, stdout ) {
  