Skip to content

Commit

Permalink
removed hack
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
albertz committed Apr 26, 2011
1 parent c7413f4 commit d972fcd
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions shairport.pl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d972fcd

Please sign in to comment.