[csw-devel] SF.net SVN: gar:[11402] csw/mgar/pkg/flac/trunk/bin

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Oct 25 23:27:14 CEST 2010


Revision: 11402
          http://gar.svn.sourceforge.net/gar/?rev=11402&view=rev
Author:   wahwah
Date:     2010-10-25 21:27:14 +0000 (Mon, 25 Oct 2010)

Log Message:
-----------
flac: Renamed files that caused trouble on Mac OS X

Added Paths:
-----------
    csw/mgar/pkg/flac/trunk/bin/README
    csw/mgar/pkg/flac/trunk/bin/c-compiler

Removed Paths:
-------------
    csw/mgar/pkg/flac/trunk/bin/CC
    csw/mgar/pkg/flac/trunk/bin/cc

Deleted: csw/mgar/pkg/flac/trunk/bin/CC
===================================================================
--- csw/mgar/pkg/flac/trunk/bin/CC	2010-10-25 21:26:40 UTC (rev 11401)
+++ csw/mgar/pkg/flac/trunk/bin/CC	2010-10-25 21:27:14 UTC (rev 11402)
@@ -1 +0,0 @@
-link cc
\ No newline at end of file

Added: csw/mgar/pkg/flac/trunk/bin/README
===================================================================
--- csw/mgar/pkg/flac/trunk/bin/README	                        (rev 0)
+++ csw/mgar/pkg/flac/trunk/bin/README	2010-10-25 21:27:14 UTC (rev 11402)
@@ -0,0 +1,6 @@
+This directory was causing me trouble on Mac OS X, because apparently "cc" and
+"CC" are the same file on OS X!
+
+I've renamed them; I'm sorry if your build is broken!
+
+--Maciej

Copied: csw/mgar/pkg/flac/trunk/bin/c-compiler (from rev 11401, csw/mgar/pkg/flac/trunk/bin/cc)
===================================================================
--- csw/mgar/pkg/flac/trunk/bin/c-compiler	                        (rev 0)
+++ csw/mgar/pkg/flac/trunk/bin/c-compiler	2010-10-25 21:27:14 UTC (rev 11402)
@@ -0,0 +1,22 @@
+#!/opt/csw/bin/perl -w
+
+use strict;
+
+my @oargs;
+
+my @includes = grep { /^-I/ } @ARGV;
+ at includes = ((grep { /^-I[^\/]/ } @includes),(grep { /^-I[\/]/ } @includes));
+my @argswoincludes = grep { !/^-I/ } @ARGV;
+
+foreach (@ARGV) {
+  if( /^-I/ ) {
+    push @oargs, @includes, @argswoincludes;
+    last;
+  }
+  push @oargs, shift @argswoincludes;
+}
+
+my $cc = "/opt/studio/SOS11/SUNWspro/bin/" . ($0 =~ /cc/ ? "cc" : "CC");
+
+print "$cc ", join( " ", @oargs ), "\n";
+exec( $cc, @oargs );

Deleted: csw/mgar/pkg/flac/trunk/bin/cc
===================================================================
--- csw/mgar/pkg/flac/trunk/bin/cc	2010-10-25 21:26:40 UTC (rev 11401)
+++ csw/mgar/pkg/flac/trunk/bin/cc	2010-10-25 21:27:14 UTC (rev 11402)
@@ -1,22 +0,0 @@
-#!/opt/csw/bin/perl -w
-
-use strict;
-
-my @oargs;
-
-my @includes = grep { /^-I/ } @ARGV;
- at includes = ((grep { /^-I[^\/]/ } @includes),(grep { /^-I[\/]/ } @includes));
-my @argswoincludes = grep { !/^-I/ } @ARGV;
-
-foreach (@ARGV) {
-  if( /^-I/ ) {
-    push @oargs, @includes, @argswoincludes;
-    last;
-  }
-  push @oargs, shift @argswoincludes;
-}
-
-my $cc = "/opt/studio/SOS11/SUNWspro/bin/" . ($0 =~ /cc/ ? "cc" : "CC");
-
-print "$cc ", join( " ", @oargs ), "\n";
-exec( $cc, @oargs );


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list