equal
deleted
inserted
replaced
27 |
27 |
28 COMMIT_SKIP= |
28 COMMIT_SKIP= |
29 COMMIT_FORCE= |
29 COMMIT_FORCE= |
30 COMMIT_MSG=' ' |
30 COMMIT_MSG=' ' |
31 |
31 |
32 DEPLOY_SKIP= |
32 DEPLOY_NOOP= |
|
33 DEPLOY_FORCE= |
33 |
34 |
34 ## Output command-line argument help. |
35 ## Output command-line argument help. |
35 function help_args { |
36 function help_args { |
36 local prog=$1 |
37 local prog=$1 |
37 |
38 |
57 |
58 |
58 Commit: |
59 Commit: |
59 -C do not commit changes |
60 -C do not commit changes |
60 -c commit changes |
61 -c commit changes |
61 -m MSG commit message |
62 -m MSG commit message |
|
63 |
|
64 Deploy: |
|
65 -R do not reload zones |
|
66 -r force reload zones |
62 END |
67 END |
63 } |
68 } |
64 |
69 |
65 ## Parse any command-line arguments, setting the global options vars. |
70 ## Parse any command-line arguments, setting the global options vars. |
66 function parse_args { |
71 function parse_args { |
67 OPTIND=1 |
72 OPTIND=1 |
68 |
73 |
69 while getopts 'hd:qvDVpFSsnCcm:' opt "$@"; do |
74 while getopts 'hd:qvDVpFSsnCcm:Rr' opt "$@"; do |
70 case $opt in |
75 case $opt in |
71 h) |
76 h) |
72 help_args $0 |
77 help_args $0 |
73 exit 0 |
78 exit 0 |
74 ;; |
79 ;; |
100 UPDATE_NOOP=y |
105 UPDATE_NOOP=y |
101 # implies -Sp |
106 # implies -Sp |
102 UPDATE_DIFF=y |
107 UPDATE_DIFF=y |
103 SERIAL_NOUPDATE=y |
108 SERIAL_NOUPDATE=y |
104 COMMIT_SKIP=y |
109 COMMIT_SKIP=y |
105 DEPLOY_SKIP=y |
110 DEPLOY_NOOP=y |
106 ;; |
111 ;; |
107 |
112 |
108 C) COMMIT_SKIP=y ;; |
113 C) COMMIT_SKIP=y ;; |
109 c) COMMIT_FORCE=y ;; |
114 c) COMMIT_FORCE=y ;; |
110 m) COMMIT_MSG="$OPTARG" ;; |
115 m) COMMIT_MSG="$OPTARG" ;; |
|
116 |
|
117 R) DEPLOY_NOOP=y ;; |
|
118 r) DEPLOY_FORCE=y ;; |
111 |
119 |
112 ?) |
120 ?) |
113 die |
121 die |
114 ;; |
122 ;; |
115 esac |
123 esac |