(List (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS errexit]} ) (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS nounset]} ) (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS pipefail]} ) (= scope= flags=0 words=[] bindings=[('KUBE_ROOT', {[ComSub (Com {[LIT_CHARS dirname]} {[DQ [VarSub BASH_SOURCE]]})] [LIT_CHARS /..]})]) (Com {[LIT_CHARS source]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /hack/lib/init.sh]]} ) (= scope= flags=0 words=[] bindings=[('git_upstream', {[ComSub (Com {[LIT_CHARS kube] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS util] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS git_upstream_remote_name]})]})]) (Com {[LIT_OTHER ":"]} {[VarSub git_upstream test_op=VS_TEST_COLON_EQUALS {[DQ [LIT_CHARS upstream]]}]} ) (Com {[LIT_CHARS kube] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS golang] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS setup_env]} ) (Com {[LIT_CHARS make]} {[LIT_CHARS -C]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /]]} {[LIT_VAR_LIKE "WHAT="] [LIT_CHARS cmd/mungedocs] =} ) (= scope= flags=0 words=[] bindings=[('mungedocs', {[ComSub (Com {[LIT_CHARS kube] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS util] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS find-binary]} {[DQ [LIT_CHARS mungedocs]]})]})]) (= scope= flags=0 words=[] bindings=[('DOCROOT', {[DQ [VarSub KUBE_ROOT][LIT_CHARS /docs/]]})]) (= scope= flags=0 words=[] bindings=[('EXAMPLEROOT', {[DQ [VarSub KUBE_ROOT][LIT_CHARS /examples/]]})]) (AndOr OP_AND_IF (Com {[DQ [VarSub mungedocs]]} {[DQ [LIT_CHARS "--verify=true"]]} {[DQ [LIT_CHARS "--verbose=true"]]} {[DQ [LIT_CHARS "--upstream="][VarSub git_upstream]]} {[DQ [LIT_CHARS "--root-dir="][VarSub DOCROOT]]} ) (AndOr OP_OR_IF (= scope= flags=0 words=[] bindings=[('ret', {[LIT_CHARS 0]})]) (= scope= flags=0 words=[] bindings=[('ret', {[VarSub ?]})]) ) ) (If (DBracket {B2 BINARY_INT_EQ {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [VarSub DOCROOT][LIT_CHARS " is out of date. Please run hack/update-munge-docs.sh"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (If (DBracket {B2 BINARY_INT_GT {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Error running mungedocs"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (AndOr OP_AND_IF (Com {[DQ [VarSub mungedocs]]} {[DQ [LIT_CHARS "--verify=true"]]} {[DQ [LIT_CHARS "--verbose=true"]]} {[DQ [LIT_CHARS "--upstream="][VarSub git_upstream]]} {[DQ [LIT_CHARS "--root-dir="][VarSub EXAMPLEROOT]]} ) (AndOr OP_OR_IF (= scope= flags=0 words=[] bindings=[('ret', {[LIT_CHARS 0]})]) (= scope= flags=0 words=[] bindings=[('ret', {[VarSub ?]})]) ) ) (If (DBracket {B2 BINARY_INT_EQ {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [VarSub EXAMPLEROOT][LIT_CHARS " is out of date. Please run hack/update-munge-docs.sh"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (If (DBracket {B2 BINARY_INT_GT {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Error running mungedocs"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (AndOr OP_AND_IF (Com {[DQ [VarSub mungedocs]]} {[DQ [LIT_CHARS "--verify=true"]]} {[DQ [LIT_CHARS "--verbose=true"]]} {[DQ [LIT_CHARS "--upstream="][VarSub git_upstream]]} {[DQ [LIT_CHARS "--skip-munges=analytics"]]} {[DQ [LIT_CHARS --norecurse]]} {[DQ [LIT_CHARS "--root-dir="][VarSub KUBE_ROOT][LIT_CHARS /]]} ) (AndOr OP_OR_IF (= scope= flags=0 words=[] bindings=[('ret', {[LIT_CHARS 0]})]) (= scope= flags=0 words=[] bindings=[('ret', {[VarSub ?]})]) ) ) (If (DBracket {B2 BINARY_INT_EQ {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS "/ is out of date. Please run hack/update-munge-docs.sh"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) (DBracket {B2 BINARY_INT_GT {[VarSub ret]} {[LIT_CHARS 1]}}) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Error running mungedocs."]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (= scope= flags=0 words=[] bindings=[('needsanalytics', {[Array {[ComSub (Com {[LIT_CHARS kube] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS util] [LIT_OTHER ":"] [LIT_OTHER ":"] [LIT_CHARS gen-analytics]} {[DQ [VarSub KUBE_ROOT]]} {[LIT_CHARS 1]})]}]})]) (If (DBracket {B2 BINARY_INT_NE {[VarSub needsanalytics bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}}) transform_ops=[(#len)]]} {[LIT_CHARS 0]}}) (List (Com {[LIT_CHARS echo]} {[LIT_CHARS -e]} {[DQ [LIT_CHARS "Some md files are missing ga-beacon analytics link:"]]} ) (Com {[LIT_CHARS printf]} {[SQ ]} {[DQ [VarSub needsanalytics bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}})]]} ) (= scope= flags=0 words=[] bindings=[('ret', {[LIT_CHARS 1]})]) ) ) (If (DBracket {B2 BINARY_INT_EQ {[VarSub ret]} {[LIT_CHARS 0]}}) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Docs are properly munged."]]} ) (ElseTrue) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Docs need munging. Please run hack/update-munge-docs.sh"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) )