aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/Cons_gcc.pm
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-28 03:46:44 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-28 03:46:44 +0000
commit6aca16cc32a626c863ea73e392afc59b88b89edf (patch)
tree19f79d8217dbb716983c020de71dbf2dabe213bf /code/unix/Cons_gcc.pm
parent64fab6d1e5c81852878cf6d13a778fea7d071430 (diff)
downloadioquake3-aero-6aca16cc32a626c863ea73e392afc59b88b89edf.tar.gz
ioquake3-aero-6aca16cc32a626c863ea73e392afc59b88b89edf.zip
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
Diffstat (limited to 'code/unix/Cons_gcc.pm')
-rwxr-xr-xcode/unix/Cons_gcc.pm2
1 files changed, 1 insertions, 1 deletions
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);