summaryrefslogtreecommitdiff
path: root/apps/plugins/disktidy.config
blob: 0c062e700f67103f3a68061e51d502ba91504cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Disktidy config
# When adding a new file, make sure its NOT enabled
< ALL >: no
< NONE >: no
< Windows >: no
    desktop.ini: no
    Thumbs.db: no
    Recycled/: no
    $RECYCLE.BIN/: no
    System Volume Information/: no
< Mac OSX >: no
    .Trashes/: no
    .DS_Store: no
    ._*: no
< Linux/BSD >: no
    .Trash-*/: no
    .dolphinview: no
    .d3lphinview: no
< Other >: no
'>42 43 44 45 46 47 48 49 50 51
#!/bin/sh
rootdir=`dirname $0`
toolsdir=$rootdir/..
outdir=$rootdir/output
jobs="1"
err="0"

mkdir -p $outdir

print_help() {
  echo "Build Checkwps for every target in targets.txt."
  echo "The binaries are put into in '$outdir'"
  echo ""
  cat <<EOF
  Usage: build-all.sh [OPTION]...
  Options:
    --jobs=NUMBER   Let make use NUMBER jobs (default is 1)

EOF
exit
}

for arg in "$@"; do
	case "$arg" in
        --jobs=*)   jobs=`echo "$arg" | cut -d = -f 2`;;
        -h|--help)  print_help;;
        *)          err="1"; echo "[ERROR] Option '$arg' unsupported";;
    esac
done

if [ -z $jobs ] || [ $jobs -le "0" ]
then
    echo "[ERROR] jobs must be a positive number"
    err="1"
fi

if [ $err -ge "1" ]
then
    echo "An error occured. Aborting"
    exit
fi

awk -f $rootdir/parse_configure.awk $rootdir/../configure | (
    while read target model
    do
        make -j $jobs clean
        $toolsdir/configure --target=$model --type=C --ram=32 # 32 should always give default RAM
        make -j $jobs
        mv checkwps.$model $outdir
    done
)