[comp.lang.c++] bug-fix foo.c.o

djones@megatest.UUCP (Dave Jones) (12/24/87)

Release 1.2.1 under Sun-3 Unix

   BUG:   CC -c  leaves the object file in foo.c.o, rather than foo.o.

   TEST:  Make a little foo.c, then say, 
	    "rm foo.*o; CC -c foo.c; ls foo.*o".
	  It should say, "foo.o", not "foo.c.o".

   FIX:   Replace the B=`basename $A .[cC]` with the following:

		case $A in 
		*.c)  B=`basename $A .c`
		      ;;
		*.C)  B=`basename $A .C`
		      ;;
		esac