From 4538a39ef4a197c84e5af32ca6d093c2d636cf18 Mon Sep 17 00:00:00 2001 From: James Laird Date: Tue, 26 Apr 2011 15:14:11 +1000 Subject: [PATCH] Don't run 'make' in arbitrary directories on the user's system That was a little overkill. Reading the INSTALL file is more useful. --- shairport.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shairport.pl b/shairport.pl index 344276c3..e2a01c08 100755 --- a/shairport.pl +++ b/shairport.pl @@ -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,