aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/Cons_gcc.pm
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-26 17:39:27 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-26 17:39:27 +0000
commit6bf20c78f5b69d40bcc4931df93d29198435ab67 (patch)
treee3eda937a05d7db42de725b7013bd0344b987f34 /code/unix/Cons_gcc.pm
parent872d4d7f55af706737ffb361bb76ad13e7496770 (diff)
downloadioquake3-aero-6bf20c78f5b69d40bcc4931df93d29198435ab67.tar.gz
ioquake3-aero-6bf20c78f5b69d40bcc4931df93d29198435ab67.zip
newlines fixed
git-svn-id: svn://svn.icculus.org/quake3/trunk@6 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/Cons_gcc.pm')
-rwxr-xr-xcode/unix/Cons_gcc.pm94
1 files changed, 47 insertions, 47 deletions
diff --git a/code/unix/Cons_gcc.pm b/code/unix/Cons_gcc.pm
index 1b24589..41df3fd 100755
--- a/code/unix/Cons_gcc.pm
+++ b/code/unix/Cons_gcc.pm
@@ -1,47 +1,47 @@
-#
-# Some utilities to handle gcc compiler setup
-#
-
-package Cons_gcc;
-
-# pass the compiler name
-# returns an array, first element is 2 for 2.x 3 for 3.x, then full version, then machine info
-sub get_gcc_version
-{
- my @ret;
- my ($CC) = @_;
- my $version=`$CC --version | head -1`;
- chop($version);
- my $machine=`$CC -dumpmachine`;
- chop($machine);
- if($version =~ '2\.[0-9]*\.[0-9]*')
- {
- push @ret, '2';
- } else {
- push @ret, '3';
- }
- push @ret, $version;
- push @ret, $machine;
- return @ret;
-}
-
-# http://ccache.samba.org/
-# check ccache existence and path
-# returns an array, first element 0 / 1, then path
-sub get_ccache
-{
- my @ret;
- $ccache_path=`which ccache`;
- chop($ccache_path);
- if(-x $ccache_path)
- {
- push @ret, '1';
- push @ret, $ccache_path;
- return @ret;
- }
- push @ret, '0';
- return @ret;
-}
-
-# close package
-1;
+#
+# Some utilities to handle gcc compiler setup
+#
+
+package Cons_gcc;
+
+# pass the compiler name
+# returns an array, first element is 2 for 2.x 3 for 3.x, then full version, then machine info
+sub get_gcc_version
+{
+ my @ret;
+ my ($CC) = @_;
+ my $version=`$CC --version | head -1`;
+ chop($version);
+ my $machine=`$CC -dumpmachine`;
+ chop($machine);
+ if($version =~ '2\.[0-9]*\.[0-9]*')
+ {
+ push @ret, '2';
+ } else {
+ push @ret, '3';
+ }
+ push @ret, $version;
+ push @ret, $machine;
+ return @ret;
+}
+
+# http://ccache.samba.org/
+# check ccache existence and path
+# returns an array, first element 0 / 1, then path
+sub get_ccache
+{
+ my @ret;
+ $ccache_path=`which ccache`;
+ chop($ccache_path);
+ if(-x $ccache_path)
+ {
+ push @ret, '1';
+ push @ret, $ccache_path;
+ return @ret;
+ }
+ push @ret, '0';
+ return @ret;
+}
+
+# close package
+1;