(command.CommandList
  children: [
    (C {(Id.KW_Set set)} {(-ex)})
    (C {(source)} {($ Id.VSub_DollarName '$TRAVIS_BUILD_DIR') (/ci/travis_env_common.sh)})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                  {(Id.Lit_Equals '=')} {(DQ (osx))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:77)
            )
          ]
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {(brew)} {(update)})
                (C {(brew)} {(bundle)} {(--file) (Id.Lit_Equals '=') (c_glib/Brewfile)})
              ]
            )
            (C {(export)} 
              {(Id.Lit_VarLike 'PKG_CONFIG_PATH=') ($ Id.VSub_DollarName '$PKG_CONFIG_PATH') 
                (Id.Lit_Other ':') (/usr/local/opt/libffi/lib/pkgconfig)
              }
            )
          ]
          spids: [64 79]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (meson))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:121)
            )
          ]
          action: [
            (C {(source)} {($ Id.VSub_DollarName '$TRAVIS_BUILD_DIR') (/ci/travis_install_conda.sh)})
            (C {(pip)} {(install)} {(meson)} {(ninja)})
          ]
          spids: [108 123]
        )
      ]
    )
    (C {(gem)} {(install)} {(test-unit)} {(gobject-introspection)})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                  {(Id.Lit_Equals '=')} {(DQ (osx))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:165)
            )
          ]
          action: [
            (C {(sudo)} {(env)} 
              {(Id.Lit_VarLike 'PKG_CONFIG_PATH=') ($ Id.VSub_DollarName '$PKG_CONFIG_PATH')} {(luarocks)} {(install)} {(lgi)}
            )
          ]
          spids: [152 167]
        )
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (autotools))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:196)
            )
          ]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_TORCH_EXAMPLE')} 
                          {(Id.Lit_Equals '=')} {(DQ (yes))} {(Id.Lit_RBracket ']')}
                        )
                      terminator: (Token id:Id.Op_Semi val:';' span_id:214)
                    )
                  ]
                  action: [
                    (C {(git)} {(clone)} {(--quiet)} {(--depth)} {(1)} {(--recursive)} 
                      {(https) (Id.Lit_Other ':') (//github.com/torch/distro.git)} {(word_part.TildeSub token:(Token id:Id.Lit_TildeLike val:'~' span_id:243)) (/torch)}
                    )
                    (C {(pushd)} 
                      {(word_part.TildeSub token:(Token id:Id.Lit_TildeLike val:'~' span_id:249)) 
                        (/torch)
                      }
                    )
                    (command.Simple
                      words: [{(./install-deps)}]
                      redirects: [
                        (redir.Redir
                          op: (Token id:Id.Redir_Great val:'>' span_id:255)
                          fd: -1
                          arg_word: {(/dev/null)}
                        )
                      ]
                    )
                    (command.Pipeline
                      children: [
                        (C {(echo)} {(DQ (yes))})
                        (command.Simple
                          words: [{(./install.sh)}]
                          redirects: [
                            (redir.Redir
                              op: (Token id:Id.Redir_Great val:'>' span_id:270)
                              fd: -1
                              arg_word: {(/dev/null)}
                            )
                          ]
                        )
                      ]
                      negated: F
                    )
                    (C {(.)} 
                      {(word_part.TildeSub token:(Token id:Id.Lit_TildeLike val:'~' span_id:277)) 
                        (/torch/install/bin/torch-activate)
                      }
                    )
                    (C {(popd)})
                    (C {(luarocks)} {(install)} {(lgi)})
                  ]
                  spids: [201 216]
                )
              ]
              else_action: [
                (C {(sudo)} {(apt)} {(install)} {(-y)} {(-qq)} {(luarocks)})
                (C {(sudo)} {(luarocks)} {(install)} {(lgi)})
              ]
            )
          ]
          spids: [183 198]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (autotools))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:334)
            )
          ]
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {(go)} {(get)} {(github.com/linuxdeepin/go-gir-generator)})
                (C {(Id.Lit_Other ':')})
              ]
            )
            (C {(pushd)} 
              {($ Id.VSub_DollarName '$GOPATH') (/src/github.com/linuxdeepin/go-gir-generator)}
            )
            (C {(rm)} {(lib.in/gio-2.0/gdk_workaround.go)})
            (C {(mv)} 
              (word.BracedTree
                parts: [(lib.in/gio-2.0/config.json) (word_part.BracedTuple words:[{} {(.orig)}])]
              )
            )
            (command.Simple
              words: [
                {(sed)}
                {(-e)}
                {(SQ (Token id:Id.Lit_Chars val:'s/\\("Settings",\\)/\\/\\/ \\1/g' span_id:377))}
                {(-e)}
                {
                  (SQ 
                    (Token
                      id: Id.Lit_Chars
                      val: 's/\\("SettingsBackend",\\)/\\/\\/ \\1/g'
                      span_id: 385
                    )
                  )
                }
                {(lib.in/gio-2.0/config.json.orig)}
              ]
              redirects: [
                (redir.Redir
                  op: (Token id:Id.Redir_Great val:'>' span_id:392)
                  fd: -1
                  arg_word: {(lib.in/gio-2.0/config.json)}
                )
              ]
            )
            (C {(mv)} 
              (word.BracedTree
                parts: [(Makefile) (word_part.BracedTuple words:[{} {(.orig)}])]
              )
            )
            (command.Simple
              words: [
                {(sed)}
                {(-e)}
                {(SQ (Token id:Id.Lit_Chars val:'s/ gudev-1.0//' span_id:411))}
                {(Makefile.orig)}
              ]
              redirects: [
                (redir.Redir
                  op: (Token id:Id.Redir_Great val:'>' span_id:416)
                  fd: -1
                  arg_word: {(Makefile)}
                )
              ]
            )
            (C {(mkdir)} {(-p)} {(out/src/gir/gudev-1.0)})
            (C {(make)} {(build)} {(copyfile)})
            (C {(mkdir)} {(-p)} {($ Id.VSub_DollarName '$GOPATH') (/bin/)})
            (C {(cp)} {(-a)} {(out/gir-generator)} {($ Id.VSub_DollarName '$GOPATH') (/bin/)})
            (C {(cp)} {(-a)} {(out/src/gir/)} {($ Id.VSub_DollarName '$GOPATH') (/src/gir/)})
            (C {(popd)})
          ]
          spids: [321 336]
        )
      ]
    )
    (C {(pushd)} {($ Id.VSub_DollarName '$ARROW_C_GLIB_DIR')})
    (C {(export)} 
      {(Id.Lit_VarLike 'PKG_CONFIG_PATH=') ($ Id.VSub_DollarName '$PKG_CONFIG_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$ARROW_CPP_INSTALL') (/lib/pkgconfig)
      }
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'LD_LIBRARY_PATH=') ($ Id.VSub_DollarName '$LD_LIBRARY_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$ARROW_CPP_INSTALL') (/lib)
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (autotools))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:503)
            )
          ]
          action: [
            (C {(./autogen.sh)})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:CONFIGURE_OPTIONS)
                  op: assign_op.Equal
                  rhs: {(DQ ('--prefix=') ($ Id.VSub_DollarName '$ARROW_C_GLIB_INSTALL'))}
                  spids: [512]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                          {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(DQ (osx))} {(Id.Lit_RBracket ']')}
                        )
                      terminator: (Token id:Id.Op_Semi val:';' span_id:533)
                    )
                  ]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:CONFIGURE_OPTIONS)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName '$CONFIGURE_OPTIONS') (' --enable-gtk-doc'))}
                          spids: [538]
                        )
                      ]
                    )
                  ]
                  spids: [519 535]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:CONFIGURE_OPTIONS)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName '$CONFIGURE_OPTIONS') 
                        (' CFLAGS=-DARROW_NO_DEPRECATED_API')
                      )
                    }
                  spids: [549]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:CONFIGURE_OPTIONS)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName '$CONFIGURE_OPTIONS') 
                        (' CXXFLAGS=-DARROW_NO_DEPRECATED_API')
                      )
                    }
                  spids: [556]
                )
              ]
            )
            (C {(./configure)} {($ Id.VSub_DollarName '$CONFIGURE_OPTIONS')})
            (C {(make)} {(-j4)})
            (C {(make)} {(install)})
          ]
          spids: [490 505]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:MESON_OPTIONS)
              op: assign_op.Equal
              rhs: {(DQ ('--prefix=') ($ Id.VSub_DollarName '$ARROW_C_GLIB_INSTALL'))}
              spids: [582]
            )
          ]
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:MESON_OPTIONS)
              op: assign_op.Equal
              rhs: {(DQ ($ Id.VSub_DollarName '$MESON_OPTIONS') (' -Denable_gtk_doc=true'))}
              spids: [589]
            )
          ]
        )
        (C {(mkdir)} {(-p)} {(build)})
        (C {(env)} {(Id.Lit_VarLike 'CFLAGS=') (DQ (-DARROW_NO_DEPRECATED_API))} 
          {(Id.Lit_VarLike 'CXXFLAGS=') (DQ (-DARROW_NO_DEPRECATED_API))} {(meson)} {(build)} {($ Id.VSub_DollarName '$MESON_OPTIONS')}
        )
        (C {(pushd)} {(build)})
        (C {(ninja)})
        (C {(ninja)} {(install)})
        (C {(popd)})
      ]
    )
    (C {(popd)})
  ]
)