[52202] users/ryandesign/no_default_gcc/cc

ryandesign at macports.org ryandesign at macports.org
Thu Jun 11 21:27:43 PDT 2009


Revision: 52202
          http://trac.macports.org/changeset/52202
Author:   ryandesign at macports.org
Date:     2009-06-11 21:27:43 -0700 (Thu, 11 Jun 2009)
Log Message:
-----------
no_default_gcc script: show the name of the configure var that should be used

Modified Paths:
--------------
    users/ryandesign/no_default_gcc/cc

Modified: users/ryandesign/no_default_gcc/cc
===================================================================
--- users/ryandesign/no_default_gcc/cc	2009-06-12 03:53:35 UTC (rev 52201)
+++ users/ryandesign/no_default_gcc/cc	2009-06-12 04:27:43 UTC (rev 52202)
@@ -3,18 +3,18 @@
 
 PROG=$(basename "$0")
 case "$PROG" in
-	cc)
-		NEWPROG=gcc
+	gcc)
+		VAR=cc
 		;;
-	c++)
-		NEWPROG=g++
+	c++|g++)
+		VAR=cxx
 		;;
 	*)
-		NEWPROG="$PROG"
+		VAR="$PROG"
 		;;
 esac
 
 echo "$PROG $@" 1>&2
-echo "$PROG: Error: You should be using /usr/bin/$NEWPROG-*:" 1>&2
+echo "$PROG: Error: You should be using \${configure.$VAR}" 1>&2
 echo "See http://trac.macports.org/wiki/UsingTheRightCompiler" 1>&2
 exit 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090611/2d004cba/attachment.html>


More information about the macports-changes mailing list