From d972fcd8328c21a7579dff6e4a7e7ac42cf18ffb Mon Sep 17 00:00:00 2001 From: Albert Zeyer Date: Tue, 26 Apr 2011 11:55:13 +0200 Subject: [PATCH] removed hack This introduced in this pull request: https://github.com/albertz/shairport/pull/49 This looks very hacky and it gives warnings for me. Also, I don't really understand why it is needed because `perl -w shairport.pl` works already. --- shairport.pl | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/shairport.pl b/shairport.pl index 9368b09c..3fd7a56a 100755 --- a/shairport.pl +++ b/shairport.pl @@ -1,18 +1,4 @@ -#!/bin/sh -if test -n "`perl -V | grep "5\.0"`" -then - echo -n "FATAL: You appear to have perl " - for WORD in `perl -v | grep "^This is "` - do - echo $WORD - done | grep "5" | xargs echo -n - echo ", but at least version 5.10.0 is required." - exit 1 -fi -exec perl -wx $0 "$@" - if 0; -#!perl -w -#line 16 +#!/usr/bin/env perl # ShairPort - Airtunes compatible server # Copyright (c) 2011 James Laird