From: Christian Walde Date: Sun, 15 Jul 2012 12:41:51 +0000 (+0200) Subject: select the appropiate system make X-Git-Tag: v0.001000~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ca313d5abb947f1846aecdeaa3b28624cb0ea9c6;p=p5sagit%2FDistar.git select the appropiate system make --- diff --git a/lib/Distar.pm b/lib/Distar.pm index c6221a2..2d02338 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -3,6 +3,8 @@ package Distar; use strictures 1; use base qw(Exporter); +use Config; + our @EXPORT = qw( author manifest_include run_preflight ); @@ -56,8 +58,10 @@ sub run_preflight { system("git fetch"); - for (scalar `make manifest 2>&1 >/dev/null`) { - $_ && die "make manifest changed:\n$_ Go check it and retry"; + my $make = $Config{make}; + + for (scalar `"$make" manifest 2>&1 >/dev/null`) { + $_ && die "$make manifest changed:\n$_ Go check it and retry"; } for (scalar `git status`) {