gcc-fat.sh
changeset 299 47cdd50205ad
parent 295 fbbfdea441f5
child 342 4c402477609f
     1.1 --- a/gcc-fat.sh	Mon May 01 03:22:39 2006 +0000
     1.2 +++ b/gcc-fat.sh	Mon May 01 03:24:32 2006 +0000
     1.3 @@ -45,7 +45,7 @@
     1.4              compile=no; link=no;;
     1.5          -c) link=no;;
     1.6          -o) output=$2;;
     1.7 -        *.c) source=$1;;
     1.8 +        *.c|*.cc|*.cpp|*.S) source=$1;;
     1.9      esac
    1.10      shift
    1.11  done
    1.12 @@ -57,7 +57,7 @@
    1.13      if test x$link = xyes; then
    1.14          output=a.out
    1.15      elif test x$compile = xyes; then
    1.16 -        output=`basename $source .c`.o
    1.17 +        output=`echo $source | sed -e 's|.*/||' -e 's|\(.*\)\.[^\.]*|\1|'`.o
    1.18      fi
    1.19  fi
    1.20