6 echo " -h|-? display this help message"
7 echo " -o <dir> output directory"
11 while getopts ho
:? arg
17 * ) echo "unrecognized option '$arg'" ; exit 1 ;;
21 if [ -z "$OUTDIR" ]; then
25 # load GCCVER and BINVER
28 rm -f $OUTDIR/build.log
29 rm -rf $OUTDIR/build-
*
30 rm -rf $OUTDIR/gcc-
$GCCVER
31 rm -rf $OUTDIR/binutils-
$BINVER
32 rm -rf $OUTDIR/gdb-
$GDBVER
33 rm -rf $OUTDIR/gmp-
$GMPVER
34 rm -rf $OUTDIR/mpc-
$MPCVER
35 rm -rf $OUTDIR/mpfr-
$MPFRVER
36 rm -f $OUTDIR/.extracted-stamp