Changeset 13647


Ignore:
Timestamp:
10/12/12 17:08:55 (12 years ago)
Author:
glperez
Message:

CHG: Added usage information to Android install scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/android/android_aux.sh

    r12846 r13647  
    1616j=1;
    1717
     18echo ""
     19echo "This install script utilizes 'android_aux.sh' to allow for options."
     20echo "For usage information enter: '--help'"
    1821echo Number of arguments is: $#
     22
    1923for arg in $*
    2024do
     
    2226        step=${BASH_REMATCH[1]};
    2327        echo "Setting step to: " $step
    24     elif [[ "$arg" =~ -j=([1-9]+[0-9]*) || "$arg" =~ ([1-9]+[0-9]*) ]]; then
     28    elif [[ "$arg" == "--help" ]]; then
     29        echo ""
     30        echo "USAGE: $ install.sh [--step=#] [-j#]"
     31        echo ""
     32        echo "Where '#' is some integer."
     33        echo "To check the number of steps check the install script."
     34        echo ""
     35        exit 1;
     36    elif [[ "$arg" =~ -j=([1-9]+[0-9]*) ]]; then
    2537        j=${BASH_REMATCH[1]};
    2638        echo "Number of jobs set to: " $j
    2739    else
    2840        echo "Option not recognized"
     41        exit 1;
    2942    fi
    3043done
Note: See TracChangeset for help on using the changeset viewer.