(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgname) op: Equal rhs: {(acf-provisioning-polycom4.0.3f)} spids: [6] ) ] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(2)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Files for provisioning Polycom IP phones"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.polycom.com/products/voice/index.html"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ ("AS IS"))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(DQ )} spids:[39])] spids: [39] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ( "http://downloads.polycom.com/voice/voip/uc/UC_Software_4_0_3F_release_sig_split.zip\n" ) ("http://downloads.polycom.com/voice/voip/uc/SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip\n") ("000000000000-directory.xml\n") ("000000000000-phone.cfg\n") ("000000000000-web.cfg\n") ("000000000000.cfg.patch\n") ) } spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:subpackages) op:Equal rhs:{(DQ )} spids:[53])] spids: [53] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/))} spids: [58] ) ] spids: [58] ) (FuncDef name: link_dupes body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:dir) op:Equal rhs:{(SQ )} spids:[74])] spids: [72] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:old_pwd) op: Equal rhs: {(DQ ($ VSub_Name "$PWD"))} spids: [79] ) ] spids: [77] ) (ForEach iter_name: dir do_arg_iter: True body: (DoGroup children: [ (C {(echo)} {(DQ ("Creating links of duplicate files at '") ($ VSub_Name "$dir") ("'"))} ) (AndOr children: [ (C {(cd)} {(DQ ($ VSub_Name "$dir"))}) (ControlFlow token:<ControlFlow_Break break>) ] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:prevsum) op: Equal rhs: {(SQ )} spids: [113] ) ] spids: [113] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:prevfile) op: Equal rhs: {(SQ )} spids: [116] ) ] spids: [116] ) (AndOr children: [ (Pipeline children: [ (C {(md5sum)} {(Lit_Other "*") (.ld)}) (C {(sort)}) (While cond: [ (Sentence child: (C {(read)} {(sum)} {(file)}) terminator: <Op_Semi ";"> ) ] body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$sum"))} {(Lit_Other "=")} {(DQ ($ VSub_Name "$prevsum"))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (C {(echo)} { (DQ ("* Creating link of '") ($ VSub_Name "$file") ("'") ) } ) (AndOr children: [ (C {(rm)} {($ VSub_Name "$file")}) (AndOr children: [ (C {(ln)} {(-s)} {($ VSub_Name "$prevfile")} {($ VSub_Name "$file")} ) (ControlFlow token: <ControlFlow_Break break> ) ] op_id: Op_DPipe ) ] op_id: Op_DAmp ) ] spids: [-1 159] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:prevsum) op: Equal rhs: {($ VSub_Name "$sum")} spids: [193] ) ] spids: [193] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:prevfile) op: Equal rhs: {($ VSub_Name "$file")} spids: [197] ) ] spids: [197] ) ] spids: [190 201] ) ] spids: [139 204] ) ) ] negated: False ) (ControlFlow token:<ControlFlow_Break break>) ] op_id: Op_DPipe ) ] spids: [90 211] ) spids: [-1 -1] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ret) op: Equal rhs: {($ VSub_QMark "$?")} spids: [216] ) ] spids: [214] ) (C {(cd)} {(DQ ($ VSub_Name "$old_pwd"))}) (ControlFlow token:<ControlFlow_Return return> arg_word:{($ VSub_Name "$ret")}) ] spids: [69] ) spids: [65 68] ) (FuncDef name: prepare body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[244])] spids: [242] ) (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(sed)} {(-i)} {(-e)} {(SQ <"s/\\r//">)} {(000000000000.cfg)}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {(DQ ("Applying ") (${ VSub_Name i))}) terminator: <Op_Semi ";"> ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(../) ($ VSub_Name "$i")}) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [286 288 314 -1] ) ] spids: [279 283 317] ) ] spids: [276 320] ) spids: [272 274] ) ] spids: [239] ) spids: [235 238] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (AndOr children: [ (C {(link_dupes)} {(DQ ($ VSub_Name "$_builddir"))}) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/var/www/provisioning/htdocs/Polycom)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/var/www/provisioning/htdocs/log)}) (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (-r) ($ VSub_Name "$pkgrel")) } ] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$pkgdir")) (/var/www/provisioning/htdocs/Polycom/package-version) } spids: [383] ) ] ) (C {(cp)} {(-r)} {(Lit_Other "*") (.ld)} {(Lit_Other "*") (.wav)} {(SoundPointIPLocalization)} {(000000000000.cfg)} {(DQ ($ VSub_Name "$pkgdir")) (/var/www/provisioning/htdocs)} ) (C {(cp)} {(000000000000-directory.xml)} {(000000000000-phone.cfg)} {(000000000000-web.cfg)} {(DQ ($ VSub_Name "$pkgdir")) (/var/www/provisioning/htdocs/Polycom)} ) ] spids: [330] ) spids: [326 329] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("f2d6c889b6471878427b729988e5ea94 UC_Software_4_0_3F_release_sig_split.zip\n") ( "4361b57fbe7534a1170797dc40f21a3c SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip\n" ) ("4a6ff93b944a710da0c3eb99938f42cc 000000000000-directory.xml\n") ("2c32486b7c9d692326fd6270664eac01 000000000000-phone.cfg\n") ("2c32486b7c9d692326fd6270664eac01 000000000000-web.cfg\n") ("ad802a8e30d4d816513f7e9132639dd4 000000000000.cfg.patch") ) } spids: [427] ) ] spids: [427] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "c061ae619355d429787ddf660cb4136f75636da9b0de632b93126038880b8790 UC_Software_4_0_3F_release_sig_split.zip\n" ) ( "3fbe07e0f2c288d501ab41e711cdb2bdfca0831dbb5a44c63a34a0551f9ed129 SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip\n" ) ("875f5bbec057d29508bcd671a203d8e2852cd959aeaeb937443cedbe824e0a41 000000000000-directory.xml\n") ( "e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-phone.cfg\n" ) ("e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-web.cfg\n") ( "c50d37f8bf6cdbf803236c9b2504ae92fa3e32fd794d7c0d43f7c2f9546f8e8d 000000000000.cfg.patch" ) ) } spids: [437] ) ] spids: [437] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "8699f129c8b2f9b96d4578644597725d28875cd6a67391c8f362dace5b31c55619aa04a06f8d3bd0810a908b520ec839c4059110d596fa06c4bbda1b51ca979b UC_Software_4_0_3F_release_sig_split.zip\n" ) ( "17c661fb224269abc8e4a53a9c078cc9f5599e054666842f590d9c5cdfcaa52100463d0dfe826ad9c4f65684e7eb574852b4fe3c2e9d5b0e52890c2b93b07b5e SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip\n" ) ( "9adc73d02aa4f545aca893c335284d77099c56fcc17a48f61003ede8713e96aeb8f467896f4dfbf7db67255cc3d60faf353b76ab86c5881d0ba884d1c0acffb3 000000000000-directory.xml\n" ) ( "db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-phone.cfg\n" ) ( "db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-web.cfg\n" ) ( "beac1a354cbd7ca6118e801f6cc6941974567c5127bd0489b3f86f01de46b98910da203dadf32e45089c554d0566c36ccfece48c329087f474692113192802d1 000000000000.cfg.patch" ) ) } spids: [447] ) ] spids: [447] ) ] )