From 6aca16cc32a626c863ea73e392afc59b88b89edf Mon Sep 17 00:00:00 2001 From: zakk Date: Sun, 28 Aug 2005 03:46:44 +0000 Subject: Patching from floam with some edits by myself: I was working on a patch earlier to fix some more things up to be more modern, and I added a couple lines from that cleanup patch I showed you on irc. Some commented code was removed, some stuff was made to not be broke (old head usage), the makefile should install things better, and a a few GCC warnings were gagged. I also attempted to version it but you'll probably want to change that to whatever versioning rules you decide on using. git-svn-id: svn://svn.icculus.org/quake3/trunk@13 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/Cons_gcc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/unix/Cons_gcc.pm') diff --git a/code/unix/Cons_gcc.pm b/code/unix/Cons_gcc.pm index 41df3fd..485d1a3 100755 --- a/code/unix/Cons_gcc.pm +++ b/code/unix/Cons_gcc.pm @@ -10,7 +10,7 @@ sub get_gcc_version { my @ret; my ($CC) = @_; - my $version=`$CC --version | head -1`; + my $version=`$CC --version | head -n 1`; chop($version); my $machine=`$CC -dumpmachine`; chop($machine); -- cgit v1.2.3