Changeset 13647
- Timestamp:
- 10/12/12 17:08:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/android/android_aux.sh
r12846 r13647 16 16 j=1; 17 17 18 echo "" 19 echo "This install script utilizes 'android_aux.sh' to allow for options." 20 echo "For usage information enter: '--help'" 18 21 echo Number of arguments is: $# 22 19 23 for arg in $* 20 24 do … … 22 26 step=${BASH_REMATCH[1]}; 23 27 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 25 37 j=${BASH_REMATCH[1]}; 26 38 echo "Number of jobs set to: " $j 27 39 else 28 40 echo "Option not recognized" 41 exit 1; 29 42 fi 30 43 done
Note:
See TracChangeset
for help on using the changeset viewer.