(CommandList children: [ (C {(set)} {(-o)} {(nounset)}) (C {(set)} {(-o)} {(pipefail)}) (C {(set)} {(-o)} {(errexit)}) (Assignment keyword: Assign_Readonly pairs: [ (assign_pair lhs: (LhsName name:OIL_VERSION) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(head)} {(-n)} {(1)} {(oil-version.txt)})]) left_token: <Left_CommandSub '$('> spids: [110 118] ) } spids: [109] ) ] spids: [107] ) (Assignment keyword: Assign_Readonly pairs: [ (assign_pair lhs: (LhsName name:OSH_RELEASE_BINARY) op: Equal rhs: {(_tmp/oil-tar-test/oil-) ($ VSub_Name '$OIL_VERSION') (/_bin/osh)} spids: [126] ) ] spids: [124] ) (FuncDef name: log body: (BraceGroup children: [ (SimpleCommand words: [{(echo)} {(DQ ($ VSub_At '$@'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[145])] ) ] spids: [136] ) spids: [132 135] ) (FuncDef name: _clean-tmp-dirs body: (BraceGroup children: [ (C {(rm)} {(-r)} {(-f)} (BracedWordTree parts: [ (_tmp/) (BracedAltPart words: [{(spec)} {(wild)} {(unit)} {(gold)} {(osh2oil)}] ) ] ) (BracedWordTree parts: [ (_tmp/) (BracedAltPart words: [{(osh-parser)} {(osh-runtime)} {(vm-baseline)} {(ovm-build)} {(oheap)}] ) ] ) {(_tmp/metrics)} {(_tmp/oil-tar-test)} ) ] spids: [292] ) spids: [288 291] ) (FuncDef name: _clean body: (BraceGroup children: [ (C {(_clean-tmp-dirs)}) (C {(rm)} {(-r)} {(-f)} {(_devbuild)}) (C {(build/actions.sh)} {(clean-repo)}) ] spids: [346] ) spids: [342 345] ) (FuncDef name: _dev-build body: (BraceGroup children:[(C {(build/dev.sh)} {(all)})] spids:[378]) spids: [374 377] ) (FuncDef name: _release-build body: (BraceGroup children: [ (C {(build/prepare.sh)} {(configure)}) (C {(build/prepare.sh)} {(build-python)}) (C {($ VSub_Number '$0')} {(oil)}) (C {(build/test.sh)} {(oil-tar)}) (C {(ln)} {(-s)} {(-f)} {(--no-target-directory)} {(-v)} {(oil.ovm)} {($ VSub_Name '$OSH_RELEASE_BINARY')} ) ] spids: [395] ) spids: [391 394] ) (FuncDef name: _test-release-build body: (BraceGroup children: [ (C {(test/alpine.sh)} {(copy-tar)} {(SQ )} {(oil)}) (C {(test/alpine.sh)} {(test-tar)} {(SQ )} {(oil)}) (C {(test/spec.sh)} {(link-busybox-ash)}) (C {(test/spec.sh)} {(smoke)}) (C {(test/osh2oil.sh)} {(run-for-release)}) (C {(test/gold.sh)} {(run-for-release)}) (SimpleCommand words: [{(test/spec.sh)} {(all)}] more_env: [ (env_pair name: OSH_OVM val: {($ VSub_Name '$OSH_RELEASE_BINARY')} spids: [554] ) ] ) ] spids: [484] ) spids: [480 483] ) (FuncDef name: build-and-test body: (BraceGroup children: [ (C {(_clean)}) (C {(_dev-build)}) (C {(test/unit.sh)} {(run-for-release)}) (C {(_release-build)}) (C {(_test-release-build)}) ] spids: [571] ) spids: [567 570] ) (FuncDef name: _install body: (BraceGroup children: [ (C {(test/spec.sh)} {(install-shells)}) (C {(sudo)} {(apt)} {(install)} {(python-dev)}) ] spids: [607] ) spids: [603 606] ) (FuncDef name: benchmark-build body: (BraceGroup children: [(C {(_install)}) (C {(_clean)}) (C {(_dev-build)}) (C {(_release-build)})] spids: [638] ) spids: [634 637] ) (FuncDef name: benchmark-run body: (BraceGroup children: [ (SimpleCommand words: [{(benchmarks/auto.sh)} {(all)}] more_env: [ (env_pair name: OSH_OVM val: {($ VSub_Name '$OSH_RELEASE_BINARY')} spids: [666] ) ] ) ] spids: [663] ) spids: [659 662] ) (FuncDef name: benchmark-run-on-1-machine body: (BraceGroup children: [ (SimpleCommand words: [{(benchmarks/oheap.sh)} {(measure)}] more_env: [ (env_pair name: OSH_OVM val: {($ VSub_Name '$OSH_RELEASE_BINARY')} spids: [683] ) ] ) ] spids: [680] ) spids: [676 679] ) (FuncDef name: _compressed-tarball body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:name) op: Equal rhs: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(hello)}) spids: [703 707] ) } spids: [702] ) ] spids: [700] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: { (BracedVarSub token: <VSub_Number 2> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(0.0.0)}) spids: [713 717] ) } spids: [712] ) ] spids: [710] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:in) op: Equal rhs: {(_release/) ($ VSub_Name '$name') (.tar)} spids: [723] ) ] spids: [721] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(_release/) ($ VSub_Name '$name') (-) ($ VSub_Name '$version') (.tar.gz)} spids: [731] ) ] spids: [729] ) (C {(build/actions.sh)} {(write-release-date)}) (C {(make)} {($ VSub_Name '$in')}) (TimeBlock pipeline: (SimpleCommand words: [{(gzip)} {(-c)} {($ VSub_Name '$in')}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out')} spids: [771] ) ] ) ) (C {(ls)} {(-l)} {($ VSub_Name '$out')}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out2) op: Equal rhs: {(_release/) ($ VSub_Name '$name') (-) ($ VSub_Name '$version') (.tar.xz)} spids: [790] ) ] spids: [788] ) (TimeBlock pipeline: (SimpleCommand words: [{(xz)} {(-c)} {($ VSub_Name '$in')}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out2')} spids: [806] ) ] ) ) (C {(ls)} {(-l)} {($ VSub_Name '$out2')}) ] spids: [697] ) spids: [693 696] ) (FuncDef name: oil body: (BraceGroup children: [(C {(_compressed-tarball)} {(oil)} {($ VSub_Name '$OIL_VERSION')})] spids: [824] ) spids: [820 823] ) (FuncDef name: hello body: (BraceGroup children: [ (C {(_compressed-tarball)} {(hello)} { (CommandSubPart command_list: (CommandList children: [(C {(head)} {(-n)} {(1)} {(build/testdata/hello-version.txt)})] ) left_token: <Left_CommandSub '$('> spids: [847 855] ) } ) ] spids: [840] ) spids: [836 839] ) (FuncDef name: escape-segments body: (BraceGroup children: [ (C {(python)} {(-c)} { (SQ <'\n'> <'import cgi, re, sys\n'> <'\n'> <'print re.sub(\n'> <' r"\\x00(.*)\\x01", \n'> <' lambda match: cgi.escape(match.group(1)),\n'> <' sys.stdin.read())\n'> ) } ) ] spids: [879] ) spids: [875 878] ) (FuncDef name: _git-changelog-body body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:prev_branch) op: Equal rhs: {($ VSub_Number '$1')} spids: [912] ) ] spids: [910] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:cur_branch) op: Equal rhs: {($ VSub_Number '$2')} spids: [918] ) ] spids: [916] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:format) op: Equal rhs: { (SQ <'<tr>\n'> <' <td><a class="checksum"\n'> <' href="https://github.com/oilshell/oil/commit/%H">%h</a>\n'> <' </td>\n'> <' <td class="date">%ad</td>\n'> <' <td>%x00%an%x01</td>\n'> <' <td class="subject">%x00%s%x01</td>\n'> <' </tr>'> ) } spids: [942] ) ] spids: [940] ) (Pipeline children: [ (C {(git)} {(log)} {($ VSub_Name '$prev_branch') (..) ($ VSub_Name '$cur_branch')} {(--reverse)} {(--pretty) (Lit_Other '=') (DQ ('format:') ($ VSub_Name '$format'))} {(--date) (Lit_Other '=') (short)} ) (C {(escape-segments)}) ] negated: F ) ] spids: [907] ) spids: [903 906] ) (FuncDef name: _git-changelog-header body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:prev_branch) op: Equal rhs: {($ VSub_Number '$1')} spids: [1002] ) ] spids: [1000] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:cur_branch) op: Equal rhs: {($ VSub_Number '$2')} spids: [1008] ) ] spids: [1006] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('<!DOCTYPE html>\n') ('<html>\n') (' <head>\n') (' <title>Commits Between ') ($ VSub_Name '$prev_branch') (' and ') ($ VSub_Name '$cur_branch') ('</title>\n') (' <style>\n') (' /* Make it centered and skinny for readability */\n') (' body {\n') (' margin: 0 auto;\n') (' width: 60em;\n') (' }\n') (' table {\n') (' width: 100%;\n') (' }\n') (' code {\n') (' color: green;\n') (' }\n') (' .checksum {\n') (' font-family: monospace;\n') (' }\n') (' .date {\n') (' /*font-family: monospace;*/\n') (' }\n') (' .subject {\n') (' font-family: monospace;\n') (' }\n') ('\n') (' /* Copied from oilshell.org bundle.css */\n') (' .date {\n') (' font-size: medium;\n') (' color: #555;\n') (' padding-left: 1em;\n') (' }\n') (' </style>\n') (' </head>\n') (' <body>\n') (' <h3>Commits Between Branches <code>') ($ VSub_Name '$prev_branch') ('</code> and\n') (' <code>') ($ VSub_Name '$cur_branch') ('</code></h3>\n') (' <table>\n') ) } do_expansion: True here_end: EOF was_filled: T spids: [1015] ) ] ) ] spids: [997] ) spids: [993 996] ) (FuncDef name: _git-changelog body: (BraceGroup children: [ (C {(_git-changelog-header)} {(DQ ($ VSub_At '$@'))}) (C {(_git-changelog-body)} {(DQ ($ VSub_At '$@'))}) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ (' </table>\n'))} do_expansion: True here_end: EOF was_filled: T spids: [1115] ) ] ) (C {(_html-footer)}) ] spids: [1096] ) spids: [1092 1095] ) (FuncDef name: git-changelog-0.1 body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: {(SQ <0.1.0>)} spids: [1135] ) ] spids: [1133] ) (SimpleCommand words: [{(_git-changelog)} {(release/0.0.0)} {(release/0.1.0)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(../oilshell.org__deploy/release/) ($ VSub_Name '$version') (/changelog.html)} spids: [1149] ) ] ) ] spids: [1130] ) spids: [1126 1129] ) (FuncDef name: git-changelog-0.2.alpha1 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.1.0)} {(release/0.2.alpha1)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1173] ) ] ) ] spids: [1162] ) spids: [1158 1161] ) (FuncDef name: git-changelog-0.2.0 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.1.0)} {(release/0.2.0)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1195] ) ] ) ] spids: [1184] ) spids: [1180 1183] ) (FuncDef name: git-changelog-0.3.alpha1 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.2.0)} {(release/0.3.alpha1)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1217] ) ] ) ] spids: [1206] ) spids: [1202 1205] ) (FuncDef name: git-changelog-0.3.0 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.2.0)} {(release/0.3.0)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1239] ) ] ) ] spids: [1228] ) spids: [1224 1227] ) (FuncDef name: git-changelog-0.4.0 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.3.0)} {(release/0.4.0)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1261] ) ] ) ] spids: [1250] ) spids: [1246 1249] ) (FuncDef name: git-changelog-0.5.alpha1 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.4.0)} {(release/0.5.alpha1)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1283] ) ] ) ] spids: [1272] ) spids: [1268 1271] ) (FuncDef name: git-changelog-0.5.alpha2 body: (BraceGroup children: [ (SimpleCommand words: [{(_git-changelog)} {(release/0.5.alpha1)} {(release/0.5.alpha2)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/changelog.html)} spids: [1308] ) ] ) ] spids: [1297] ) spids: [1293 1296] ) (FuncDef name: html-redirect body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {($ VSub_Number '$1')} spids: [1328] ) ] spids: [1326] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('<!DOCTYPE html>\n') ('<html>\n') (' <head>\n') (' <meta http-equiv=') (Right_DoubleQuote '"') (refresh) (Right_DoubleQuote '"') (' content=') (Right_DoubleQuote '"') ('0; url=') ($ VSub_Name '$url') (Right_DoubleQuote '"') (' />\n') (' </head>\n') (' <body>\n') (' <p>Redirect to<a href=') (Right_DoubleQuote '"') ($ VSub_Name '$url') (Right_DoubleQuote '"') ('>') ($ VSub_Name '$url') ('</a></p>\n') (' </body>\n') ('</html> \n') ) } do_expansion: True here_end: EOF was_filled: T spids: [1334] ) ] ) ] spids: [1323] ) spids: [1319 1322] ) (FuncDef name: no-announcement body: (BraceGroup children: [ (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('<!DOCTYPE html>\n') ('<html>\n') (' <head>\n') (' </head>\n') (' <body>\n') (' <p>No announcement for this release.</p>\n') (' </body>\n') ('</html> \n') ) } do_expansion: True here_end: EOF was_filled: T spids: [1374] ) ] ) ] spids: [1369] ) spids: [1365 1368] ) (FuncDef name: write-no-announcement body: (BraceGroup children: [ (SimpleCommand words: [{(no-announcement)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/announcement.html)} spids: [1398] ) ] ) ] spids: [1393] ) spids: [1389 1392] ) (FuncDef name: announcement-0.0 body: (BraceGroup children: [ (SimpleCommand words: [{(html-redirect)} {(SQ </blog/2017/07/23.html>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(../oilshell.org__deploy/release/0.0.0/announcement.html)} spids: [1420] ) ] ) ] spids: [1409] ) spids: [1405 1408] ) (FuncDef name: announcement-0.1 body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: {(SQ <0.1.0>)} spids: [1436] ) ] spids: [1434] ) (SimpleCommand words: [{(html-redirect)} {(SQ </blog/2017/09/09.html>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(../oilshell.org__deploy/release/) ($ VSub_Name '$version') (/announcement.html)} spids: [1450] ) ] ) ] spids: [1431] ) spids: [1427 1430] ) (FuncDef name: announcement-0.2 body: (BraceGroup children: [ (SimpleCommand words: [{(html-redirect)} {(SQ </blog/2017/11/10.html>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/announcement.html)} spids: [1472] ) ] ) ] spids: [1463] ) spids: [1459 1462] ) (FuncDef name: announcement-0.3 body: (BraceGroup children: [ (SimpleCommand words: [{(html-redirect)} {(SQ </blog/2017/12/22.html>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/announcement.html)} spids: [1492] ) ] ) ] spids: [1483] ) spids: [1479 1482] ) (FuncDef name: announcement-0.4 body: (BraceGroup children: [ (SimpleCommand words: [{(html-redirect)} {(SQ </blog/2018/02/03.html>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_release/VERSION/announcement.html)} spids: [1516] ) ] ) ] spids: [1507] ) spids: [1503 1506] ) (FuncDef name: _link body: (BraceGroup children: [(C {(ln)} {(-s)} {(-f)} {(-v)} {(--no-target-directory)} {(DQ ($ VSub_At '$@'))})] spids: [1527] ) spids: [1523 1526] ) (FuncDef name: compress-txt body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:name) op: Equal rhs: {($ VSub_Number '$1')} spids: [1556] ) ] spids: [1554] ) (C {(log)} {(DQ ('--- test/') ($ VSub_Name '$name'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/test/) ($ VSub_Name '$name') (.wwz))} spids: [1571] ) ] spids: [1569] ) (C {(pushd)} {(_tmp/) ($ VSub_Name '$name')}) (TimeBlock pipeline:(C {(zip)} {(-r)} {(-q)} {($ VSub_Name '$out')} {(.)})) (C {(popd)}) ] spids: [1551] ) spids: [1547 1550] ) (FuncDef name: compress body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:root) op: Equal rhs: {($ VSub_Name '$PWD') (/_release/VERSION/)} spids: [1616] ) ] spids: [1614] ) (C {(compress-txt)} {(osh2oil)}) (C {(compress-txt)} {(gold)}) (C {(log)} {(DQ ('--- test/unit'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/test/unit.wwz))} spids: [1646] ) ] spids: [1644] ) (C {(pushd)} {(_tmp/unit)}) (TimeBlock pipeline:(C {(zip)} {(-r)} {(-q)} {($ VSub_Name '$out')} {(.)})) (C {(popd)}) (C {(log)} {(DQ ('--- test/spec'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/test/spec.wwz))} spids: [1687] ) ] spids: [1685] ) (C {(pushd)} {(_tmp/spec)}) (TimeBlock pipeline:(C {(zip)} {(-r)} {(-q)} {($ VSub_Name '$out')} {(.)})) (C {(popd)}) (C {(log)} {(DQ ('--- test/wild'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/test/wild.wwz))} spids: [1728] ) ] spids: [1726] ) (C {(pushd)} {(_tmp/wild/www)}) (TimeBlock pipeline:(C {(zip)} {(-r)} {(-q)} {($ VSub_Name '$out')} {(.)})) (C {(popd)}) (C {(log)} {(DQ ('--- metrics'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/metrics.wwz))} spids: [1770] ) ] spids: [1768] ) (C {(pushd)} {(_tmp/metrics)}) (TimeBlock pipeline:(C {(zip)} {(-r)} {(-q)} {($ VSub_Name '$out')} {(.)})) (C {(popd)}) (C {(compress-benchmarks)}) (C {(tree)} {(_release/VERSION)}) ] spids: [1611] ) spids: [1607 1610] ) (FuncDef name: compress-benchmarks body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:root) op: Equal rhs: {($ VSub_Name '$PWD') (/_release/VERSION/)} spids: [1822] ) ] spids: [1820] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$root')}) (C {(log)} {(DQ ('--- benchmarks'))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(DQ ($ VSub_Name '$root') (/benchmarks.wwz))} spids: [1845] ) ] spids: [1843] ) (C {(pushd)} {(_tmp)}) (Pipeline children: [ (C {(find)} (BracedWordTree parts: [(osh-parser/) (BracedAltPart words:[{(stage1)} {(stage2)} {(index.html)}])] ) (BracedWordTree parts:[(osh-runtime/) (BracedAltPart words:[{(stage1)} {(stage2)} {(index.html)}])]) (BracedWordTree parts: [ (vm-baseline/) (BracedAltPart words: [{(stage1)} {(stage2)} {(index.html)}] ) ] ) (BracedWordTree parts:[(ovm-build/) (BracedAltPart words:[{(stage1)} {(stage2)} {(index.html)}])]) (BracedWordTree parts: [(oheap/) (BracedAltPart words:[{(stage1)} {(stage2)} {(index.html)}])] ) {(-type)} {(f)} ) (C {(xargs)} {(--verbose)} {(--)} {(zip)} {(-q)} {($ VSub_Name '$out')}) ] negated: F ) (C {(popd)}) ] spids: [1817] ) spids: [1813 1816] ) (FuncDef name: line-counts body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {($ VSub_Number '$1')} spids: [1962] ) ] spids: [1960] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$out')}) (SimpleCommand words: [{(build/metrics.sh)} {(linecount-pydeps)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/pydeps.txt)} spids: [1982] ) ] ) (SimpleCommand words: [{(build/metrics.sh)} {(linecount-nativedeps)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/nativedeps.txt)} spids: [1992] ) ] ) (SimpleCommand words: [{(scripts/count.sh)} {(all)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/src.txt)} spids: [2007] ) ] ) (SimpleCommand words: [{(scripts/count.sh)} {(parser)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/parser.txt)} spids: [2025] ) ] ) (SimpleCommand words: [{(scripts/count.sh)} {(runtime)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/runtime.txt)} spids: [2035] ) ] ) (SimpleCommand words: [{(scripts/count.sh)} {(oil-osh-cloc)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/oil-osh-cloc.txt)} spids: [2046] ) ] ) ] spids: [1957] ) spids: [1953 1956] ) (FuncDef name: metrics body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:out) op:Equal rhs:{(_tmp/metrics)} spids:[2063])] spids: [2061] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$out')}) (SimpleCommand words: [{(build/metrics.sh)} {(pyc-bytes)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out') (/pyc-bytes.txt)} spids: [2079] ) ] ) (C {(line-counts)} {($ VSub_Name '$out') (/line-counts)}) (C {(tree)} {($ VSub_Name '$out')}) ] spids: [2058] ) spids: [2054 2057] ) (FuncDef name: _copy-path body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:src) op: Equal rhs: {($ VSub_Number '$1')} spids: [2109] ) (assign_pair lhs: (LhsName name:dest) op: Equal rhs: {($ VSub_Number '$2')} spids: [2112] ) ] spids: [2107] ) (C {(mkdir)} {(-p)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Name '$dest')})]) left_token: <Left_CommandSub '$('> spids: [2120 2124] ) } ) (C {(cp)} {(-v)} {($ VSub_Name '$src')} {($ VSub_Name '$dest')}) ] spids: [2104] ) spids: [2100 2103] ) (FuncDef name: copy-web body: (BraceGroup children: [ (Pipeline children: [ (C {(find)} {(web)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\('>)} {(-name)} {(_tmp)} {(-a)} {(-prune)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\)'>)} {(-o)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\('>)} {(-name)} {(SQ <'*.css'>)} {(-o)} {(-name)} {(SQ <'*.js'>)} {(EscapedLiteralPart token:<Lit_EscapedChar '\\)'>)} {(-a)} {(-printf)} {(SQ <'%p _release/VERSION/%p\\n'>)} ) (C {(xargs)} {(-n)} {(2)} {(--)} {($ VSub_Number '$0')} {(_copy-path)}) ] negated: F ) ] spids: [2142] ) spids: [2138 2141] ) (FuncDef name: build-tree body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:root) op: Equal rhs: {(_release/VERSION)} spids: [2239] ) ] spids: [2237] ) (C {(mkdir)} {(-p)} (BracedWordTree parts: [($ VSub_Name '$root') (/) (BracedAltPart words:[{(doc)} {(test)}])] ) ) (C {(cp)} {(-v)} {(_build/release-date.txt)} {(oil-version.txt)} {($ VSub_Name '$root')}) (C {(build/doc.sh)} {(osh-quick-ref)} {(_release/VERSION)}) (C {(build/doc.sh)} {(install)}) (C {(build/doc.sh)} {(release-index)} {($ VSub_Name '$root') (/index.html)}) (C {(copy-web)}) (C {(tree)} {($ VSub_Name '$root')}) ] spids: [2234] ) spids: [2230 2233] ) (FuncDef name: deploy-doc body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:deploy_repo) op: Equal rhs: {(SQ <../oilshell.org__deploy>)} spids: [2345] ) ] spids: [2343] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:release_root_dir) op: Equal rhs: {(DQ ($ VSub_Name '$deploy_repo') (/release))} spids: [2353] ) ] spids: [2351] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:release_dir) op: Equal rhs: {(DQ ($ VSub_Name '$release_root_dir') (/) ($ VSub_Name '$OIL_VERSION'))} spids: [2362] ) ] spids: [2360] ) (C {(cp)} {(-v)} {(-r)} {(--force)} {(--no-target-directory)} {(_release/VERSION/)} {($ VSub_Name '$release_dir') (/)} ) (C {(html-index)} {($ VSub_Name '$release_root_dir')} {(_tmp/releases.html)}) (C {(cp)} {(-v)} {(_tmp/releases.html)} {($ VSub_Name '$deploy_repo')}) (C {(tree)} {(-L)} {(3)} {($ VSub_Name '$release_root_dir')}) (C {(ls)} {(-l)} {($ VSub_Name '$deploy_repo') (/releases.html)}) ] spids: [2340] ) spids: [2336 2339] ) (FuncDef name: deploy-tar body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:download_dir) op: Equal rhs: {(SQ <../oilshell.org__deploy/download/>)} spids: [2450] ) ] spids: [2448] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$download_dir')}) (C {(cp)} {(-v)} {(_release/oil-) ($ VSub_Name '$OIL_VERSION') (.tar.) (Lit_Other '*')} {($ VSub_Name '$download_dir')} ) (C {(ls)} {(-l)} {($ VSub_Name '$download_dir')}) ] spids: [2445] ) spids: [2441 2444] ) (FuncDef name: _release-files-html body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: {($ VSub_Number '$1')} spids: [2533] ) ] spids: [2531] ) (C {(echo)} {(SQ <'<table class="file-table">'>)}) (C {(echo)} { (SQ < '<tr><thead> <td>File</td> <td>Size</td> <td>SHA256 Checksum</td> </thead></tr>' > ) } ) (ForEach iter_name: name iter_words: [ (BracedWordTree parts: [(oil-) ($ VSub_Name '$version') (.tar.) (BracedAltPart words:[{(xz)} {(gz)}])] ) ] do_arg_iter: F body: (DoGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ (download/) ($ VSub_Name '$name'))} spids: [2574] ) ] spids: [2572] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:path) op: Equal rhs: {(../oilshell.org__deploy/download/) ($ VSub_Name '$name')} spids: [2586] ) ] spids: [2584] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:checksum) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(sha256sum)} {($ VSub_Name '$path')}) (C {(awk)} {(SQ <'{print $1}'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [2594 2606] ) } spids: [2593] ) ] spids: [2591] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(stat)} {(--format)} {(SQ <'%s'>)} {($ VSub_Name '$path')}) ] ) left_token: <Left_CommandSub '$('> spids: [2612 2622] ) } spids: [2611] ) ] spids: [2609] ) (C {(echo)} {(SQ <'<tr> <td class="filename"><a href="'>) ($ VSub_Name '$url') (SQ <'">'>) ($ VSub_Name '$name') (SQ <'</a></td>\n'> <' <td class="size">'>) ($ VSub_Name '$size') (SQ <'</td>\n'> <' <td class="checksum">'>) ($ VSub_Name '$checksum') (SQ <'</td>\n'> <' </tr>'>) } ) ] spids: [2569 2657] ) spids: [2558 2567] ) (C {(echo)} {(SQ <'</table>'>)}) ] spids: [2528] ) spids: [2524 2527] ) (FuncDef name: _html-index body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:release_root_dir) op: Equal rhs: {($ VSub_Number '$1')} spids: [2733] ) ] spids: [2731] ) (ForEach iter_name: entry iter_words: [{($ VSub_Name '$release_root_dir') (/) (Lit_Other '*')}] do_arg_iter: F body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [(C {(test)} {(-d)} {($ VSub_Name '$entry')})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(ControlFlow token:<ControlFlow_Continue continue>)] spids: [16777215 2766] ) ] spids: [16777215 2772] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:dir) op: Equal rhs: {($ VSub_Name '$entry')} spids: [2777] ) ] spids: [2775] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(head)} {(-n)} {(1)} {($ VSub_Name '$dir') (/oil-version.txt)}) ] ) left_token: <Left_CommandSub '$('> spids: [2785 2794] ) } spids: [2784] ) ] spids: [2782] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:release_date) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(head)} {(-n)} {(1)} {($ VSub_Name '$dir') (/release-date.txt)}) ] ) left_token: <Left_CommandSub '$('> spids: [2800 2809] ) } spids: [2799] ) ] spids: [2797] ) (C {(log)} {(DQ ('-- ') ($ VSub_Name '$dir'))}) (C {(log)} {(DQ ('Version: ') ($ VSub_Name '$version'))}) (C {(log)} {(DQ ('Release Date: ') ($ VSub_Name '$release_date'))}) (C {(log)} {(DQ )}) (C {(echo)} {(DQ ($ VSub_Name '$release_date') (' ') ($ VSub_Name '$version'))}) ] spids: [2752 2853] ) redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_tmp/release-meta.txt)} spids: [2855] ) ] spids: [2746 2750] ) (SimpleCommand words: [{(sort)} {(-r)} {(_tmp/release-meta.txt)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(_tmp/sorted-releases.txt)} spids: [2871] ) ] ) (While cond: [(Sentence child:(C {(read)} {(date)} {(_)} {(version)}) terminator:<Op_Semi ';'>)] body: (DoGroup children: [ (C {(log)} {(DQ ('Release Date: ') ($ VSub_Name '$date'))}) (C {(log)} {(DQ ('Version: ') ($ VSub_Name '$version'))}) (C {(echo)} {(SQ <'<a name="'>) ($ VSub_Name '$version') (SQ <'"></a>'>)}) (C {(echo)} {(DQ ('<h2>Version ') ($ VSub_Name '$version') ('</h2>'))}) (C {(echo)} {(DQ ('<p class=')) (date) (DQ ('>') ($ VSub_Name '$date') ('</p>'))}) (C {(echo)} {(SQ <'<p> <a href="release/'>) ($ VSub_Name '$version') (SQ <'/announcement.html">Release Announcement</a>\n'> <' | <a href="release/'> ) ($ VSub_Name '$version') (SQ <'/doc/INSTALL.html">INSTALL</a>\n'> <' | <a href="release/'> ) ($ VSub_Name '$version') (SQ <'/">Docs and Details</a>\n'> <' </p>'>) } ) (C {(_release-files-html)} {($ VSub_Name '$version')}) ] spids: [2888 2975] ) redirects: [ (Redir op_id: Redir_Less fd: 16777215 arg_word: {(_tmp/sorted-releases.txt)} spids: [2977] ) ] ) ] spids: [2728] ) spids: [2724 2727] ) (FuncDef name: _releases-html-header body: (BraceGroup children: [ (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('<!DOCTYPE html>\n') ('<html>\n') (' <head>\n') (' <title>Oil Releases</title>\n') (' <style>\n') (' /* Make it centered and skinny for readability */\n') (' body {\n') (' margin: 0 auto;\n') (' width: 60em;\n') (' }\n') (' h1 {\n') (' text-align: center;\n') (' }\n') (' thead {\n') (' font-weight: bold;\n') (' }\n') (' /* Style for checksum, file size, etc. */\n') ('\n') (' .file-table {\n') (' width: 100%;\n') (' }\n') ('\n') (' .filename {\n') (' font-family: monospace;\n') (' }\n') ('\n') (' .size {\n') (' }\n') (' .checksum {\n') (' font-family: monospace;\n') (' color: #555;\n') (' }\n') ('\n') (' /* Copied from oilshell.org bundle.css */\n') (' .date {\n') (' font-size: medium;\n') (' color: #555;\n') (' padding-left: 1em;\n') (' }\n') (' #home-link {\n') (' text-align: right;\n') (' }\n') (' </style>\n') (' </head>\n') (' <body>\n') (' <p id=') (Right_DoubleQuote '"') (home-link) (Right_DoubleQuote '"') ('>\n') (' <a href=') (Right_DoubleQuote '"') (/) (Right_DoubleQuote '"') ('>oilshell.org</a>\n') (' </p>\n') (' <h1>Oil Releases</h1>\n') ) } do_expansion: True here_end: EOF was_filled: T spids: [2993] ) ] ) ] spids: [2988] ) spids: [2984 2987] ) (FuncDef name: _html-footer body: (BraceGroup children: [ (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ (' </body>\n') ('</html>\n'))} do_expansion: True here_end: EOF was_filled: T spids: [3066] ) ] ) ] spids: [3061] ) spids: [3057 3060] ) (FuncDef name: html-index body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:release_root_dir) op: Equal rhs: {($ VSub_Number '$1')} spids: [3084] ) ] spids: [3082] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: { (BracedVarSub token: <VSub_Number 2> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(_tmp) (Lit_Slash /) (releases.html)} ) spids: [3091 3097] ) } spids: [3090] ) ] spids: [3088] ) (BraceGroup children: [ (C {(_releases-html-header)}) (C {(_html-index)} {($ VSub_Name '$release_root_dir')}) (C {(_html-footer)}) ] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out')} spids: [3116] ) ] spids: [3101] ) (C {(ls)} {(-l)} {($ VSub_Name '$out')}) ] spids: [3079] ) spids: [3075 3078] ) (C {(DQ ($ VSub_At '$@'))}) ] )