(CommandList
  children: [
    (C {(.)} {(./test.config)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:WIKI_URL)
          op: Equal
          rhs: 
            {(http) (Lit_Other ":") (//) 
              (DQ ($ VSub_Name "$SERVER_ADDR") (":") ($ VSub_Name "$PORT") (/) 
                ($ VSub_Name "$WIKI_DIR_NAME")
              )
            }
          spids: [40]
        )
      ]
      spids: [40]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:CURR_DIR)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(pwd)})])
                left_token: <Left_CommandSub "$(">
                spids: [53 55]
              )
            }
          spids: [52]
        )
      ]
      spids: [52]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:TEST_OUTPUT_DIRECTORY)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(pwd)})])
                left_token: <Left_CommandSub "$(">
                spids: [58 60]
              )
            }
          spids: [57]
        )
      ]
      spids: [57]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:TEST_DIRECTORY)
          op: Equal
          rhs: {(DQ ($ VSub_Name "$CURR_DIR")) (/../../../t)}
          spids: [62]
        )
      ]
      spids: [62]
    )
    (C {(export)} {(TEST_OUTPUT_DIRECTORY)} {(TEST_DIRECTORY)} {(CURR_DIR)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(DQ ($ VSub_Name "$LIGHTTPD"))} {(Lit_Other "=")} {(DQ (false))})
              terminator: <Op_Semi ";">
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:PORT) op:Equal rhs:{(80)} spids:[97])]
              spids: [97]
            )
          ]
          spids: [-1 94]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:WIKI_DIR_INST)
              op: Equal
              rhs: {(DQ ($ VSub_Name "$CURR_DIR") (/) ($ VSub_Name "$WEB_WWW"))}
              spids: [103]
            )
          ]
          spids: [103]
        )
      ]
      spids: [100 110]
    )
    (FuncDef
      name: wiki_upload_file
      body: 
        (BraceGroup
          children: [
            (C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(upload_file)} {(DQ ($ VSub_At "$@"))})
          ]
          spids: [118]
        )
      spids: [113 117]
    )
    (FuncDef
      name: wiki_getpage
      body: 
        (BraceGroup
          children: [
            (C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(get_page)} {(DQ ($ VSub_At "$@"))})
          ]
          spids: [140]
        )
      spids: [135 139]
    )
    (FuncDef
      name: wiki_delete_page
      body: 
        (BraceGroup
          children: [
            (C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(delete_page)} {(DQ ($ VSub_At "$@"))})
          ]
          spids: [162]
        )
      spids: [157 161]
    )
    (FuncDef
      name: wiki_editpage
      body: 
        (BraceGroup
          children: [
            (C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(edit_page)} {(DQ ($ VSub_At "$@"))})
          ]
          spids: [184]
        )
      spids: [179 183]
    )
    (FuncDef
      name: die
      body: (BraceGroup children:[(C {(die_with_status)} {(1)} {(DQ ($ VSub_At "$@"))})] spids:[206])
      spids: [201 205]
    )
    (FuncDef
      name: die_with_status
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:status)
                  op: Equal
                  rhs: {($ VSub_Number "$1")}
                  spids: [228]
                )
              ]
              spids: [228]
            )
            (C {(shift)})
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_Star "$*"))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[237])]
            )
            (C {(exit)} {(DQ ($ VSub_Name "$status"))})
          ]
          spids: [225]
        )
      spids: [220 224]
    )
    (FuncDef
      name: test_check_precond
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [(Pipeline children:[(C {(test_have_prereq)} {(PERL)})] negated:True)]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:skip_all)
                          op: Equal
                          rhs: {(SQ <"skipping gateway git-mw tests, perl not available">)}
                          spids: [278]
                        )
                      ]
                      spids: [278]
                    )
                    (C {(test_done)})
                  ]
                  spids: [-1 275]
                )
              ]
              spids: [-1 287]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:GIT_EXEC_PATH)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (AndOr
                                children: [
                                  (C {(cd)} 
                                    {
                                      (DQ 
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [(C {(dirname)} {(DQ ($ VSub_Number "$0"))})]
                                            )
                                          left_token: <Left_CommandSub "$(">
                                          spids: [296 302]
                                        )
                                      )
                                    }
                                  )
                                  (AndOr
                                    children: [(C {(cd)} {(DQ (../..))}) (C {(pwd)})]
                                    op_id: Op_DAmp
                                  )
                                ]
                                op_id: Op_DAmp
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [292 316]
                      )
                    }
                  spids: [291]
                )
              ]
              spids: [291]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:PATH)
                  op: Equal
                  rhs: 
                    {(DQ ($ VSub_Name "$GIT_EXEC_PATH")) (SQ <"/bin-wrapper:">) 
                      (DQ ($ VSub_Name "$PATH"))
                    }
                  spids: [319]
                )
              ]
              spids: [319]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} 
                          {(DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))} {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:skip_all)
                          op: Equal
                          rhs: {(SQ <"skipping gateway git-mw tests, no mediawiki found">)}
                          spids: [353]
                        )
                      ]
                      spids: [353]
                    )
                    (C {(test_done)})
                  ]
                  spids: [-1 350]
                )
              ]
              spids: [-1 362]
            )
          ]
          spids: [263]
        )
      spids: [258 262]
    )
    (FuncDef
      name: test_diff_directories
      body: 
        (BraceGroup
          children: [
            (C {(rm)} {(-rf)} {(DQ ($ VSub_Number "$1") (_tmp))})
            (C {(mkdir)} {(-p)} {(DQ ($ VSub_Number "$1") (_tmp))})
            (C {(cp)} {(DQ ($ VSub_Number "$1")) (/) (Lit_Other "*") (.mw)} 
              {(DQ ($ VSub_Number "$1") (_tmp))}
            )
            (C {(diff)} {(-r)} {(-b)} {(DQ ($ VSub_Number "$1") (_tmp))} {(DQ ($ VSub_Number "$2"))})
          ]
          spids: [390]
        )
      spids: [385 389]
    )
    (FuncDef
      name: test_contains_N_files
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(test)} 
                          {
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [
                                    (Pipeline
                                      children: [
                                        (C {(ls)} {(--)} {(DQ ($ VSub_Number "$1"))})
                                        (C {(wc)} {(-l)})
                                      ]
                                      negated: False
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub "$(">
                              spids: [470 484]
                            )
                          } {(-ne)} {(DQ ($ VSub_Number "$2"))}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(echo)} 
                      {
                        (DQ ("directory ") ($ VSub_Number "$1") (" should contain ") 
                          ($ VSub_Number "$2") (" files")
                        )
                      }
                    )
                    (C {(echo)} {(DQ ("it contains these files:"))})
                    (C {(ls)} {(DQ ($ VSub_Number "$1"))})
                    (C {(false)})
                  ]
                  spids: [-1 493]
                )
              ]
              spids: [-1 524]
            )
          ]
          spids: [463]
        )
      spids: [458 462]
    )
    (FuncDef
      name: wiki_check_content
      body: 
        (BraceGroup
          children: [
            (C {(mkdir)} {(-p)} {(wiki_tmp)})
            (C {(wiki_getpage)} {(DQ ($ VSub_Number "$2"))} {(wiki_tmp)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:page_name)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(printf)} 
                                    {(DQ ("%s") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">))} {(DQ ($ VSub_Number "$2"))}
                                  )
                                  (C {(sed)} {(-e)} 
                                    {
                                      (DQ (s/) (EscapedLiteralPart token:<Lit_EscapedChar "\\/">) 
                                        ("/%2F/g")
                                      )
                                    }
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [571 594]
                      )
                    }
                  spids: [570]
                )
              ]
              spids: [570]
            )
            (C {(diff)} {(-b)} {(DQ ($ VSub_Number "$1"))} 
              {(wiki_tmp/) (DQ ($ VSub_Name "$page_name")) (.mw)}
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {($ VSub_QMark "$?")} {(-ne)} {(0)})]
                  action: [
                    (C {(rm)} {(-rf)} {(wiki_tmp)})
                    (C {(error)} {(DQ ("ERROR: file ") ($ VSub_Number "$2") (" not found on wiki"))})
                  ]
                  spids: [-1 624]
                )
              ]
              spids: [-1 643]
            )
            (C {(rm)} {(-rf)} {(wiki_tmp)})
          ]
          spids: [547]
        )
      spids: [542 546]
    )
    (FuncDef
      name: wiki_page_exist
      body: 
        (BraceGroup
          children: [
            (C {(mkdir)} {(-p)} {(wiki_tmp)})
            (C {(wiki_getpage)} {(DQ ($ VSub_Number "$1"))} {(wiki_tmp)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:page_name)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(printf)} 
                                    {(DQ ("%s") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">))} {(DQ ($ VSub_Number "$1"))}
                                  )
                                  (C {(sed)} 
                                    {
                                      (DQ (s/) (EscapedLiteralPart token:<Lit_EscapedChar "\\/">) 
                                        ("/%2F/g")
                                      )
                                    }
                                  )
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [692 713]
                      )
                    }
                  spids: [691]
                )
              ]
              spids: [691]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-f)} {(wiki_tmp/) (DQ ($ VSub_Name "$page_name")) (.mw)})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(rm)} {(-rf)} {(wiki_tmp)})]
                  spids: [-1 730]
                )
              ]
              else_action: [
                (C {(rm)} {(-rf)} {(wiki_tmp)})
                (C {(error)} {(DQ ("test failed: file ") ($ VSub_Number "$1") (" not found on wiki"))})
              ]
              spids: [740 759]
            )
          ]
          spids: [672]
        )
      spids: [667 671]
    )
    (FuncDef
      name: wiki_getallpagename
      body: 
        (BraceGroup
          children: [(C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(getallpagename)})]
          spids: [778]
        )
      spids: [773 777]
    )
    (FuncDef
      name: wiki_getallpagecategory
      body: 
        (BraceGroup
          children: [
            (C {(DQ ($ VSub_Name "$CURR_DIR")) (/test-gitmw.pl)} {(getallpagename)} 
              {(DQ ($ VSub_At "$@"))}
            )
          ]
          spids: [805]
        )
      spids: [800 804]
    )
    (FuncDef
      name: wiki_getallpage
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-z)} {(DQ ($ VSub_Number "$2"))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(wiki_getallpagename)})]
                  spids: [-1 860]
                )
              ]
              else_action: [(C {(wiki_getallpagecategory)} {(DQ ($ VSub_Number "$2"))})]
              spids: [866 876]
            )
            (C {(mkdir)} {(-p)} {(DQ ($ VSub_Number "$1"))})
            (While
              cond: [(Sentence child:(C {(read)} {(-r)} {(line)}) terminator:<Op_Semi ";">)]
              body: 
                (DoGroup
                  children: [
                    (Sentence
                      child: (C {(wiki_getpage)} {(DQ ($ VSub_Name "$line"))} {($ VSub_Number "$1")})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  spids: [897 910]
                )
              redirects: [(Redir op_id:Redir_Less fd:-1 arg_word:{(all.txt)} spids:[912])]
            )
          ]
          spids: [845]
        )
      spids: [840 844]
    )
    (FuncDef
      name: error
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_At "$@"))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[937])]
            )
            (C {(exit)} {(1)})
          ]
          spids: [928]
        )
      spids: [923 927]
    )
    (FuncDef
      name: config_lighttpd
      body: 
        (BraceGroup
          children: [
            (C {(mkdir)} {(-p)} {($ VSub_Name "$WEB")})
            (C {(mkdir)} {(-p)} {($ VSub_Name "$WEB_TMP")})
            (C {(mkdir)} {(-p)} {($ VSub_Name "$WEB_WWW")})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {($ VSub_Name "$WEB") (/lighttpd.conf)}
                  spids: [991]
                )
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: 
                    {
                      (DQ ("\tserver.document-root = ") (Right_DoubleQuote "\"") 
                        ($ VSub_Name "$CURR_DIR") (/) ($ VSub_Name "$WEB_WWW") (Right_DoubleQuote "\"") ("\n") ("\tserver.port = ") ($ VSub_Name "$PORT") 
                        ("\n") ("\tserver.pid-file = ") (Right_DoubleQuote "\"") ($ VSub_Name "$CURR_DIR") (/) ($ VSub_Name "$WEB_TMP") 
                        (/pid) (Right_DoubleQuote "\"") ("\n") ("\n") ("\tserver.modules = (\n") ("\t") (Right_DoubleQuote "\"") 
                        (mod_rewrite) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (mod_redirect) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (mod_access) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (mod_accesslog) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (mod_fastcgi) 
                        (Right_DoubleQuote "\"") ("\n") ("\t)\n") ("\n") ("\tindex-file.names = (") (Right_DoubleQuote "\"") (index.php) 
                        (Right_DoubleQuote "\"") (" , ") (Right_DoubleQuote "\"") (index.html) (Right_DoubleQuote "\"") (")\n") ("\n") 
                        ("\tmimetype.assign\t\t    = (\n") ("\t") (Right_DoubleQuote "\"") (.pdf) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (application/pdf) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.sig) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (application/pgp-signature) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.spl) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/futuresplash) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.class) (Right_DoubleQuote "\"") ("\t=>\t") 
                        (Right_DoubleQuote "\"") (application/octet-stream) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.ps) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/postscript) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.torrent) (Right_DoubleQuote "\"") ("\t=>\t") (Right_DoubleQuote "\"") (application/x-bittorrent) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.dvi) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (application/x-dvi) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.gz) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/x-gzip) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.pac) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/x-ns-proxy-autoconfig) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.swf) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (application/x-shockwave-flash) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.tar.gz) 
                        (Right_DoubleQuote "\"") ("\t=>\t") (Right_DoubleQuote "\"") (application/x-tgz) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.tgz) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/x-tgz) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.tar) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (application/x-tar) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.zip) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/zip) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.mp3) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (audio/mpeg) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.m3u) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (audio/x-mpegurl) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.wma) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (audio/x-ms-wma) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.wax) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (audio/x-ms-wax) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.ogg) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (application/ogg) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.wav) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (audio/x-wav) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.gif) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (image/gif) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (.jpg) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (image/jpeg) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.jpeg) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (image/jpeg) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") 
                        (.png) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (image/png) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (.xbm) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (image/x-xbitmap) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.xpm) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (image/x-xpixmap) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.xwd) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (image/x-xwindowdump) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.css) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (text/css) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.html) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/html) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.htm) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/html) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (.js) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (text/javascript) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.asc) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (text/plain) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.c) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/plain) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.cpp) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/plain) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.log) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (text/plain) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.conf) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/plain) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.text) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/plain) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.txt) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (text/plain) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.dtd) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/xml) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.xml) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (text/xml) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (.mpeg) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (video/mpeg) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.mpg) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (video/mpeg) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") 
                        (.mov) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (video/quicktime) (Right_DoubleQuote "\"") 
                        (",\n") ("\t") (Right_DoubleQuote "\"") (.qt) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (video/quicktime) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.avi) (Right_DoubleQuote "\"") 
                        ("\t\t=>\t") (Right_DoubleQuote "\"") (video/x-msvideo) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.asf) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (video/x-ms-asf) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.asx) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (video/x-ms-asf) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.wmv) 
                        (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (video/x-ms-wmv) (Right_DoubleQuote "\"") (",\n") ("\t") 
                        (Right_DoubleQuote "\"") (.bz2) (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") (application/x-bzip) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (.tbz) (Right_DoubleQuote "\"") ("\t\t=>\t") 
                        (Right_DoubleQuote "\"") (application/x-bzip-compressed-tar) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") 
                        (.tar.bz2) (Right_DoubleQuote "\"") ("\t=>\t") (Right_DoubleQuote "\"") (application/x-bzip-compressed-tar) 
                        (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (Right_DoubleQuote "\"") ("\t\t=>\t") (Right_DoubleQuote "\"") 
                        (text/plain) (Right_DoubleQuote "\"") ("\n") ("\t)\n") ("\n") ("\tfastcgi.server = ( ") (Right_DoubleQuote "\"") (.php) 
                        (Right_DoubleQuote "\"") (" =>\n") ("\t(") (Right_DoubleQuote "\"") (localhost) (Right_DoubleQuote "\"") (" =>\n") ("\t( ") 
                        (Right_DoubleQuote "\"") (socket) (Right_DoubleQuote "\"") (" => ") (Right_DoubleQuote "\"") ($ VSub_Name "$CURR_DIR") (/) 
                        ($ VSub_Name "$WEB_TMP") (/php.socket) (Right_DoubleQuote "\"") (",\n") ("\t") (Right_DoubleQuote "\"") (bin-path) 
                        (Right_DoubleQuote "\"") (" => ") (Right_DoubleQuote "\"") ($ VSub_Name "$PHP_DIR") ("/php-cgi -c ") ($ VSub_Name "$CURR_DIR") (/) 
                        ($ VSub_Name "$WEB") (/php.ini) (Right_DoubleQuote "\"") ("\n") ("\n") ("\t)\n") ("\t)\n") ("\t)\n")
                      )
                    }
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [996]
                )
              ]
            )
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {($ VSub_Name "$WEB") (/php.ini)}
                  spids: [1570]
                )
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: 
                    {
                      (DQ ("\tsession.save_path ='") ($ VSub_Name "$CURR_DIR") (/) 
                        ($ VSub_Name "$WEB_TMP") ("'\n")
                      )
                    }
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [1575]
                )
              ]
            )
          ]
          spids: [965]
        )
      spids: [960 964]
    )
    (FuncDef
      name: start_lighttpd
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-f)} {(DQ ($ VSub_Name "$WEB_TMP") (/pid))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(echo)} {(DQ ("Instance already running. Restarting..."))})
                    (C {(stop_lighttpd)})
                  ]
                  spids: [-1 1615]
                )
              ]
              spids: [-1 1628]
            )
            (C {(config_lighttpd)})
            (C {(DQ ($ VSub_Name "$LIGHTTPD_DIR")) (/lighttpd)} {(-f)} 
              {(DQ ($ VSub_Name "$WEB")) (/lighttpd.conf)}
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_QMark "$?")} {(-ne)} {(0)})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(echo)} {(DQ ("Could not execute http deamon lighttpd"))})
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 1660]
                )
              ]
              spids: [-1 1675]
            )
          ]
          spids: [1600]
        )
      spids: [1595 1599]
    )
    (FuncDef
      name: stop_lighttpd
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(test)} {(-f)} {(DQ ($ VSub_Name "$WEB_TMP") (/pid))})
                (C {(kill)} 
                  {
                    (CommandSubPart
                      command_list: 
                        (CommandList
                          children: [(C {(cat)} {(DQ ($ VSub_Name "$WEB_TMP") (/pid))})]
                        )
                      left_token: <Left_CommandSub "$(">
                      spids: [1710 1717]
                    )
                  }
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [1694]
        )
      spids: [1689 1693]
    )
    (FuncDef
      name: create_db
      body: 
        (BraceGroup
          children: [
            (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE"))})
            (C {(echo)} {(DQ ("Generating the SQLite database file. It can take some time ..."))})
            (C {(php)} {(DQ ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_INSTALL_SCRIPT"))} 
              {
                (CommandSubPart
                  command_list: 
                    (CommandList
                      children: [(C {(basename)} {(DQ ($ VSub_Name "$DB_FILE"))} {(.sqlite)})]
                    )
                  left_token: <Left_CommandSub "$(">
                  spids: [1777 1785]
                )
              } {(DQ ($ VSub_Name "$WIKI_ADMIN"))} {(DQ ($ VSub_Name "$WIKI_PASSW"))} {(DQ ($ VSub_Name "$TMP"))} 
              {(DQ ($ VSub_Name "$PORT"))}
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-f)} 
                          {(DQ ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE"))} {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(error)} 
                      {
                        (DQ ("Can't create database file ") ($ VSub_Name "$TMP") (/) 
                          ($ VSub_Name "$DB_FILE") (". Try to run ./install-wiki.sh delete first.")
                        )
                      }
                    )
                  ]
                  spids: [-1 1825]
                )
              ]
              spids: [-1 1839]
            )
            (AndOr
              children: [
                (C {(cp)} {(DQ ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE"))} 
                  {(DQ ($ VSub_Name "$FILES_FOLDER"))}
                )
                (C {(error)} 
                  {
                    (DQ ("Unable to copy ") ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE") (" to ") 
                      ($ VSub_Name "$FILES_FOLDER")
                    )
                  }
                )
              ]
              op_id: Op_DPipe
            )
          ]
          spids: [1739]
        )
      spids: [1734 1738]
    )
    (FuncDef
      name: wiki_install
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_Name "$LIGHTTPD")} {(Lit_Other "=")} {(DQ (true))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(start_lighttpd)})]
                  spids: [-1 1905]
                )
              ]
              spids: [-1 1911]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:SERVER_ADDR)
                  op: Equal
                  rhs: {($ VSub_Name "$SERVER_ADDR") (Lit_Other ":") ($ VSub_Name "$PORT")}
                  spids: [1915]
                )
              ]
              spids: [1915]
            )
            (AndOr
              children: [
                (Subshell
                  child: 
                    (CommandList
                      children: [
                        (C {(mkdir)} {(-p)} 
                          {(DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))}
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} 
                                      {
                                        (DQ ($ VSub_Name "$WIKI_DIR_INST") (/) 
                                          ($ VSub_Name "$WIKI_DIR_NAME")
                                        )
                                      } {(Lit_Other "]")}
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              ]
                              action: [
                                (C {(error)} 
                                  {
                                    (DQ ("Folder ") ($ VSub_Name "$WIKI_DIR_INST") (/) 
                                      ($ VSub_Name "$WIKI_DIR_NAME") (" doesn't exist.\n") ("\t\tPlease create it and launch the script again.")
                                    )
                                  }
                                )
                              ]
                              spids: [-1 1961]
                            )
                          ]
                          spids: [-1 1976]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:MW_FILENAME)
                              op: Equal
                              rhs: 
                                {
                                  (DQ (mediawiki-) ($ VSub_Name "$MW_VERSION_MAJOR") (.) 
                                    ($ VSub_Name "$MW_VERSION_MINOR") (.tar.gz)
                                  )
                                }
                              spids: [1984]
                            )
                          ]
                          spids: [1984]
                        )
                        (C {(cd)} {(DQ ($ VSub_Name "$TMP"))})
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (C {(Lit_Other "[")} {(KW_Bang "!")} {(-f)} 
                                      {($ VSub_Name "$MW_FILENAME")} {(Lit_Other "]")}
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              ]
                              action: [
                                (C {(echo)} 
                                  {
                                    (DQ ("Downloading ") ($ VSub_Name "$MW_VERSION_MAJOR") (.) 
                                      ($ VSub_Name "$MW_VERSION_MINOR") (" sources ...")
                                    )
                                  }
                                )
                                (AndOr
                                  children: [
                                    (C {(wget)} 
                                      {
                                        (DQ ("http://download.wikimedia.org/mediawiki/") 
                                          ($ VSub_Name "$MW_VERSION_MAJOR") (/) ($ VSub_Name "$MW_FILENAME")
                                        )
                                      }
                                    )
                                    (C {(error)} {(DQ ("Unable to download "))} 
                                      {
                                        (DQ ("http://download.wikimedia.org/mediawiki/") 
                                          ($ VSub_Name "$MW_VERSION_MAJOR") (/)
                                        )
                                      } {(DQ ($ VSub_Name "$MW_FILENAME") (". "))} 
                                      {
                                        (DQ 
                                          (
"Please fix your connection and launch the script again."
                                          )
                                        )
                                      }
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (C {(echo)} 
                                  {
                                    (DQ ($ VSub_Name "$MW_FILENAME") (" downloaded in ") 
                                      (CommandSubPart
                                        command_list: (CommandList children:[(C {(pwd)})])
                                        left_token: <Left_CommandSub "$(">
                                        spids: [2071 2073]
                                      ) (". ")
                                    )
                                  } {(DQ ("You can delete it later if you want."))}
                                )
                              ]
                              spids: [-1 2015]
                            )
                          ]
                          else_action: [
                            (C {(echo)} 
                              {
                                (DQ ("Reusing existing ") ($ VSub_Name "$MW_FILENAME") 
                                  (" downloaded in ") 
                                  (CommandSubPart
                                    command_list: (CommandList children:[(C {(pwd)})])
                                    left_token: <Left_CommandSub "$(">
                                    spids: [2092 2094]
                                  ) (.)
                                )
                              }
                            )
                          ]
                          spids: [2083 2099]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:archive_abs_path)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: (CommandList children:[(C {(pwd)})])
                                    left_token: <Left_CommandSub "$(">
                                    spids: [2103 2105]
                                  ) (/) ($ VSub_Name "$MW_FILENAME")
                                }
                              spids: [2102]
                            )
                          ]
                          spids: [2102]
                        )
                        (AndOr
                          children: [
                            (C {(cd)} 
                              {
                                (DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME") 
                                  (/)
                                )
                              }
                            )
                            (C {(error)} 
                              {
                                (DQ ("can't cd to ") ($ VSub_Name "$WIKI_DIR_INST") (/) 
                                  ($ VSub_Name "$WIKI_DIR_NAME") (/)
                                )
                              }
                            )
                          ]
                          op_id: Op_DPipe
                        )
                        (AndOr
                          children: [
                            (C {(tar)} {(xzf)} {(DQ ($ VSub_Name "$archive_abs_path"))} 
                              {(--strip-components) (Lit_Other "=") (1)}
                            )
                            (C {(error)} 
                              {
                                (DQ ("Unable to extract WikiMedia's files from ") 
                                  ($ VSub_Name "$archive_abs_path") (" to ")
                                )
                              } {(DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))}
                            )
                          ]
                          op_id: Op_DPipe
                        )
                      ]
                    )
                  spids: [1929 2164]
                )
                (C {(exit)} {(1)})
              ]
              op_id: Op_DPipe
            )
            (C {(create_db)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-f)} 
                          {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings.php))} {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(error)} 
                      {(DQ ("Can't find ") ($ VSub_Name "$FILES_FOLDER") ("/LocalSettings.php "))} {(DQ ("in the current folder. "))} {(DQ ("Please run the script inside its folder."))}
                    )
                  ]
                  spids: [-1 2211]
                )
              ]
              spids: [-1 2234]
            )
            (AndOr
              children: [
                (C {(cp)} {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings.php))} 
                  {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
                )
                (C {(error)} 
                  {(DQ ("Unable to copy ") ($ VSub_Name "$FILES_FOLDER") ("/LocalSettings.php "))} {(DQ ("to ") ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
                )
              ]
              op_id: Op_DPipe
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:file_swap)
                  op: Equal
                  rhs: {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-swap.php))}
                  spids: [2280]
                )
              ]
              spids: [2280]
            )
            (SimpleCommand
              words: [
                {(sed)}
                {(DQ ("s,@WG_SCRIPT_PATH@,/") ($ VSub_Name "$WIKI_DIR_NAME") (","))}
                {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
              ]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name "$file_swap"))}
                  spids: [2302]
                )
              ]
            )
            (C {(mv)} {(DQ ($ VSub_Name "$file_swap"))} 
              {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
            )
            (SimpleCommand
              words: [
                {(sed)}
                {(DQ ("s,@WG_SERVER@,http://") ($ VSub_Name "$SERVER_ADDR") (","))}
                {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
              ]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name "$file_swap"))}
                  spids: [2336]
                )
              ]
            )
            (C {(mv)} {(DQ ($ VSub_Name "$file_swap"))} 
              {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
            )
            (SimpleCommand
              words: [
                {(sed)}
                {(DQ ("s,@WG_SQLITE_DATADIR@,") ($ VSub_Name "$TMP") (","))}
                {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
              ]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name "$file_swap"))}
                  spids: [2370]
                )
              ]
            )
            (C {(mv)} {(DQ ($ VSub_Name "$file_swap"))} 
              {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
            )
            (SimpleCommand
              words: [
                {(sed)}
                {
                  (DQ ("s,@WG_SQLITE_DATAFILE@,") 
                    (CommandSubPart
                      command_list: 
                        (CommandList
                          children: [(C {(basename)} {($ VSub_Name "$DB_FILE")} {(.sqlite)})]
                        )
                      left_token: <Left_CommandSub "$(">
                      spids: [2393 2400]
                    ) (",")
                  )
                }
                {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
              ]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name "$file_swap"))}
                  spids: [2411]
                )
              ]
            )
            (C {(mv)} {(DQ ($ VSub_Name "$file_swap"))} 
              {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))}
            )
            (AndOr
              children: [
                (C {(mv)} {(DQ ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))} 
                  {
                    (DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME") 
                      (/LocalSettings.php)
                    )
                  }
                )
                (C {(error)} 
                  {(DQ ("Unable to move ") ($ VSub_Name "$FILES_FOLDER") (/LocalSettings-tmp.php))} {(DQ ("in ") ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))}
                )
              ]
              op_id: Op_DPipe
            )
            (C {(echo)} {(DQ ("File ") ($ VSub_Name "$FILES_FOLDER") ("/LocalSettings.php is set in"))} 
              {(DQ (" ") ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))}
            )
            (C {(echo)} 
              {
                (DQ ("Your wiki has been installed. You can check it at\n") ("\t\thttp://") 
                  ($ VSub_Name "$SERVER_ADDR") (/) ($ VSub_Name "$WIKI_DIR_NAME")
                )
              }
            )
          ]
          spids: [1888]
        )
      spids: [1883 1887]
    )
    (FuncDef
      name: wiki_reset
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-f)} 
                          {(DQ (../) ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_FILE"))} {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(error)} 
                      {
                        (DQ ("Can't find ../") ($ VSub_Name "$FILES_FOLDER") (/) 
                          ($ VSub_Name "$DB_FILE") (" in the current folder.")
                        )
                      }
                    )
                  ]
                  spids: [-1 2540]
                )
              ]
              spids: [-1 2554]
            )
            (AndOr
              children: [
                (C {(cp)} {(DQ (../) ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_FILE"))} 
                  {(DQ ($ VSub_Name "$TMP"))}
                )
                (C {(error)} 
                  {
                    (DQ ("Can't copy ../") ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_FILE") 
                      (" in ") ($ VSub_Name "$TMP")
                    )
                  }
                )
              ]
              op_id: Op_DPipe
            )
            (C {(echo)} 
              {
                (DQ ("File ") ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_FILE") (" is set in ") 
                  ($ VSub_Name "$TMP")
                )
              }
            )
          ]
          spids: [2514]
        )
      spids: [2509 2513]
    )
    (FuncDef
      name: wiki_delete
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_Name "$LIGHTTPD")} {(Lit_Other "=")} {(DQ (true))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(stop_lighttpd)}) (C {(rm)} {(-fr)} {(DQ ($ VSub_Name "$WEB"))})]
                  spids: [-1 2626]
                )
              ]
              else_action: [
                (AndOr
                  children: [
                    (C {(rm)} {(-rf)} 
                      {(DQ ($ VSub_Name "$WIKI_DIR_INST") (/) ($ VSub_Name "$WIKI_DIR_NAME"))}
                    )
                    (C {(error)} {(DQ ("Wiki's directory ") ($ VSub_Name "$WIKI_DIR_INST") (/))} 
                      {(DQ ($ VSub_Name "$WIKI_DIR_NAME") (" could not be deleted"))}
                    )
                  ]
                  op_id: Op_DPipe
                )
                (AndOr
                  children: [
                    (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE"))})
                    (C {(error)} 
                      {
                        (DQ ("Database ") ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE") 
                          (" could not be deleted.")
                        )
                      }
                    )
                  ]
                  op_id: Op_DPipe
                )
              ]
              spids: [2641 2705]
            )
            (AndOr
              children: [
                (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE"))})
                (C {(error)} 
                  {
                    (DQ ("Database ") ($ VSub_Name "$TMP") (/) ($ VSub_Name "$DB_FILE") 
                      (" could not be deleted.")
                    )
                  }
                )
              ]
              op_id: Op_DPipe
            )
            (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$FILES_FOLDER") (/) ($ VSub_Name "$DB_FILE"))})
            (C {(rm)} {(-rf)} 
              {
                (DQ ($ VSub_Name "$TMP") (/mediawiki-) ($ VSub_Name "$MW_VERSION_MAJOR") (.) 
                  ($ VSub_Name "$MW_VERSION_MINOR") (.tar.gz)
                )
              }
            )
          ]
          spids: [2610]
        )
      spids: [2605 2609]
    )
  ]
)