[version] bump gcc and other projects to 7.4.0
[toolchains.git] / cleanit
bloba1a6154d2d6705e7c6946f22f629324754d9119c
1 #!/usr/bin/env bash
3 function help()
5 echo "Options"
6 echo " -h|-? display this help message"
7 echo " -o <dir> output directory"
8 exit 1
11 while getopts ho:? arg
13 case $arg in
14 o ) OUTDIR=$OPTARG ;;
15 h ) help ;;
16 ? ) help ;;
17 * ) echo "unrecognized option '$arg'" ; exit 1 ;;
18 esac
19 done
21 if [ -z "$OUTDIR" ]; then
22 OUTDIR=`pwd`
25 # load GCCVER and BINVER
26 . ./toolvers
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