Alexandre Julliard : make_makefiles: Support the GIT_DIR environment variable.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 2 14:30:39 CDT 2014
Module: wine
Branch: master
Commit: b03606c5e61ff93bcb54d64bb012cea21139610c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b03606c5e61ff93bcb54d64bb012cea21139610c
Author: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list