make_makefiles: Support the GIT_DIR environment variable.

This commit is contained in:
Alexandre Julliard 2014-09-02 20:54:24 +02:00
parent 8b2e666d3f
commit b03606c5e6
1 changed files with 2 additions and 1 deletions

View File

@ -578,7 +578,8 @@ sub update_linguas(@)
}
die "needs to be run from a git checkout" unless -d ".git";
my $git_dir = $ENV{GIT_DIR} || ".git";
die "needs to be run from a git checkout" unless -d $git_dir;
my @all_files = split /\0/, `git ls-files -c -z`;
@linguas = map { (my $ret = $_) =~ s/^po\/(.*)\.po/$1/; $ret; } grep /^po\/.*\.po$/, @all_files;