contrib / buildsystems / generateon commit commit-reach: move walk methods from commit.c (5227c38)
   1#!/usr/bin/perl -w
   2######################################################################
   3# Generate buildsystem files
   4#
   5# This script generate buildsystem files based on the output of a
   6# GNU Make --dry-run, enabling Windows users to develop Git with their
   7# trusted IDE with native projects.
   8#
   9# Note:
  10# It is not meant as *the* way of building Git with MSVC, but merely a
  11# convenience. The correct way of building Git with MSVC is to use the
  12# GNU Make tool to build with the maintained Makefile in the root of
  13# the project. If you have the msysgit environment installed and
  14# available in your current console, together with the Visual Studio
  15# environment you wish to build for, all you have to do is run the
  16# command:
  17#     make MSVC=1
  18#
  19# Copyright (C) 2009 Marius Storm-Olsen <mstormo@gmail.com>
  20######################################################################
  21use strict;
  22use File::Basename;
  23use Cwd;
  24
  25my $git_dir = getcwd();
  26$git_dir =~ s=\\=/=g;
  27$git_dir = dirname($git_dir) while (!-e "$git_dir/git.c" && "$git_dir" ne "");
  28die "Couldn't find Git repo" if ("$git_dir" eq "");
  29exec join(" ", ("PERL5LIB=${git_dir}/contrib/buildsystems ${git_dir}/contrib/buildsystems/engine.pl", @ARGV));