source: users/ryandesign/no_default_gcc/cc @ 52005

Last change on this file since 52005 was 52005, checked in by ryandesign@…, 11 years ago

no_default_gcc script: reword error message and print it after, not before, the command that was attempted

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 303 bytes
Line 
1#!/bin/bash
2# $Id: cc 52005 2009-06-08 05:22:44Z ryandesign@macports.org $
3
4PROG=$(basename "$0")
5case "$PROG" in
6        cc)
7                NEWPROG=gcc
8                ;;
9        c++)
10                NEWPROG=g++
11                ;;
12        *)
13                NEWPROG="$PROG"
14                ;;
15esac
16
17echo "$PROG $@" 1>&2
18echo "$PROG: Error: You should be using /usr/bin/$NEWPROG-*:" 1>&2
19echo "See http://trac.macports.org/wiki/UsingTheRightCompiler" 1>&2
20exit 1
Note: See TracBrowser for help on using the repository browser.