Module: wine Branch: master Commit: b03606c5e61ff93bcb54d64bb012cea21139610c URL: http://source.winehq.org/git/wine.git/?a=commit;h=b03606c5e61ff93bcb54d64bb0...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Sep 2 20:54:24 2014 +0200
make_makefiles: Support the GIT_DIR environment variable.
---
tools/make_makefiles | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/make_makefiles b/tools/make_makefiles index 649b434..f0b40c0 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -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;