Changeset 84b89095 in mainline for contrib/tools/random_check.sh


Ignore:
Timestamp:
2014-04-24T08:05:12Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
723ce99
Parents:
3b065c9
Message:

Add better usage help to random_check.sh script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/tools/random_check.sh

    r3b065c9 r84b89095  
    3838echo -n "">"$PRUNE_CONFIG_FILE"
    3939
    40 while getopts n:j:x:sS option; do
     40while getopts n:j:x:hsS option; do
    4141        case $option in
    4242        n)
     
    5959                fi
    6060                ;;
    61         *)
    62                 echo "Usage: $0 [-n loops] [-j paralellism] [-s] [-S] [-x excluded option [-x ...]]"
    63                 exit 1
     61        *|h)
     62                echo "Usage: $0 [options]"
     63                echo "where [options] could be:"
     64                echo
     65                echo "  -n LOOPS"
     66                echo "      How many configurations to check."
     67                echo "      (Default is one configuration.)"
     68                echo "  -j PARALLELISM"
     69                echo "      How many parallel jobs to execute by 'make'."
     70                echo "      (Default is single job configuration.)"
     71                echo "  -s"
     72                echo "      Use only supported compilers."
     73                echo "      (That is, only GCC cross-compiler and Clang.)"
     74                echo "  -S"
     75                echo "      Build only reasonable configurations."
     76                echo "      (Implies -s, does not build ported programs.)"
     77                echo "  -x CONFIG_OPTION=value"
     78                echo "      Skip the configuration if this option is present."
     79                echo "      (Example: CONFIG_BINUTILS=n means that only configurations"
     80                echo "      where binutils *are* included would be built.)"
     81                echo "  -h"
     82                echo "      Print this help and exit."
     83                echo
     84                if [ "$option" = "h" ]; then
     85                        exit 0
     86                else
     87                        exit 1
     88                fi
    6489                ;;
    6590        esac
Note: See TracChangeset for help on using the changeset viewer.