equal
deleted
inserted
replaced
39 local prog=$1 |
39 local prog=$1 |
40 |
40 |
41 cat <<END |
41 cat <<END |
42 Usage: $prog [options] |
42 Usage: $prog [options] |
43 |
43 |
|
44 General: |
44 -h display this help text |
45 -h display this help text |
45 |
46 |
|
47 Logging: |
46 -q quiet |
48 -q quiet |
47 -v verbose |
49 -v verbose |
48 -D debug |
50 -D debug |
49 -C debug commands |
51 -C debug commands |
50 |
52 |
|
53 Updates: |
51 -p show changes |
54 -p show changes |
52 |
|
53 -F force-updates without checking src mtime |
55 -F force-updates without checking src mtime |
54 -S do not update serial |
56 -S do not update serial |
55 -n no-op/mock-update; do not actually change anything; implies -Sp |
57 -n no-op/mock-update; don't actually change anything; implies -Sp |
56 END |
58 END |
57 } |
59 } |
58 |
60 |
59 function parse_args { |
61 function parse_args { |
60 OPTIND=1 |
62 OPTIND=1 |
61 |
63 |
62 while getopts 'hqvDCpFSn' opt "$@"; do |
64 while getopts 'hqvDCpFSn' opt "$@"; do |
63 case $opt in |
65 case $opt in |
64 h) |
66 h) |
65 help_args $1 |
67 help_args $0 |
66 exit 0 |
68 exit 0 |
67 ;; |
69 ;; |
68 |
70 |
69 q) LOG= ;; |
71 q) LOG= ;; |
70 v) LOG_INFO=y ;; |
72 v) LOG_INFO=y ;; |