Don't run 'make' in arbitrary directories on the user's system

That was a little overkill. Reading the INSTALL file is more useful.
This commit is contained in:
James Laird
2011-04-26 15:14:11 +10:00
parent 912f8e7f14
commit 4538a39ef4
+2 -4
View File
@@ -62,10 +62,8 @@ my $hairtunes_cli = $FindBin::Bin . '/hairtunes';
unless (-x $hairtunes_cli) {
say "Can't find the 'hairtunes' decoder binary, you need to build this before using Shairport.";
say "Trying to build it for you anyway...";
system("cd ${FindBin::Bin}; make || gmake");
die("Nope, didn't work out. Read the INSTALL instructions!") unless -x $hairtunes_cli;
say "Phew! Worked out okay, by the looks of it.";
say "Read the INSTALL instructions!";
exit(1);
}
GetOptions("a|apname=s" => \$apname,