(command.CommandList children: [ (C {(set)} {(-e)}) (C {(cd)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(dirname)} {(DQ ($ VSub_Number '$0'))})] ) left_token: <Left_CommandSub '$('> spids: [23 29] ) ) (/..) } ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:shashort spids:[37]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(git)} {(rev-parse)} {(--short) (Lit_Other '=') (10)} {(HEAD)})] ) left_token: <Left_CommandSub '$('> spids: [38 48] ) } spids: [37] ) ] spids: [37] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tag spids:[50]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(git)} {(tag)} {(--points-at)} {($ VSub_DollarName '$shashort')})] ) left_token: <Left_CommandSub '$('> spids: [51 59] ) } spids: [50] ) ] spids: [50] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_DollarName '$tag'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} {(DQ ('error: this script must be run with a tagged commit checked out'))} ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 74] ) ] spids: [16777215 91] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:version spids:[93]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(cat)} {(VERSION)})]) left_token: <Left_CommandSub '$('> spids: [94 98] ) } spids: [93] ) ] spids: [93] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:majmin spids:[100]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(cut)} {(-d.)} {(-f1-2)} {(VERSION)})] ) left_token: <Left_CommandSub '$('> spids: [101 109] ) } spids: [100] ) ] spids: [100] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:majminpatch spids:[114]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(cut)} {(-d-)} {(-f1)} {(VERSION)})] ) left_token: <Left_CommandSub '$('> spids: [115 123] ) } spids: [114] ) ] spids: [114] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$tag'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ (v) ($ VSub_DollarName '$version'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)} {(DQ ('error: tagged commit does not match content of VERSION file'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 144] ) ] spids: [16777215 161] ) (C {(git)} {(clone)} {(https) (Lit_Other ':') (//github.com/JuliaLang/julia)} {(-b)} {($ VSub_DollarName '$tag')} {(julia-) ($ VSub_DollarName '$version')} ) (C {(cd)} {(julia-) ($ VSub_DollarName '$version')}) (C {(make)} {(full-source-dist)}) (C {(make)} {(light-source-dist)}) (C {(mv)} {(julia-) (${ VSub_Name version) (_) ($ VSub_DollarName '$shashort') (-full.tar.gz)} {(../julia-) ($ VSub_DollarName '$version') (-full.tar.gz)} ) (C {(mv)} {(julia-) (${ VSub_Name version) (_) ($ VSub_DollarName '$shashort') (.tar.gz)} {(../julia-) ($ VSub_DollarName '$version') (.tar.gz)} ) (C {(cd)} {(..)}) (C {(rm)} {(-rf)} {(julia-) ($ VSub_DollarName '$version')}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:julianightlies spids:[241]) op: Equal rhs: {(DQ ('https://julialangnightlies-s3.julialang.org/bin'))} spids: [241] ) ] spids: [241] ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-linux-x86_64.tar.gz)} {($ VSub_DollarName '$julianightlies') (/linux/x64/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-linux64.tar.gz) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-linux-x86_64.tar.gz)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-linux-x86_64.tar.gz)} ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-linux-i686.tar.gz)} {($ VSub_DollarName '$julianightlies') (/linux/x86/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-linux32.tar.gz) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-linux-i686.tar.gz)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-linux-i686.tar.gz)} ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-linux-arm.tar.gz)} {($ VSub_DollarName '$julianightlies') (/linux/arm/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-linuxarm.tar.gz) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-linux-arm.tar.gz)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-linux-arm.tar.gz)} ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-linux-ppc64le.tar.gz)} {($ VSub_DollarName '$julianightlies') (/linux/ppc64le/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-linuxppc64.tar.gz) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-linux-ppc64le.tar.gz)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-linux-ppc64le.tar.gz)} ) (C {(curl)} {(-L)} {(-o)} {(DQ (julia-) ($ VSub_DollarName '$version') ('-osx10.7 .dmg'))} {($ VSub_DollarName '$julianightlies') (/osx/x64/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-osx.dmg) } ) (C {(cp)} {(DQ (julia-) ($ VSub_DollarName '$version') ('-osx10.7 .dmg'))} {(DQ (julia-) ($ VSub_DollarName '$majmin') ('-latest-osx10.7 .dmg'))} ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-win64.exe)} {($ VSub_DollarName '$julianightlies') (/winnt/x64/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-win64.exe) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-win64.exe)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-win64.exe)} ) (C {(curl)} {(-L)} {(-o)} {(julia-) ($ VSub_DollarName '$version') (-win32.exe)} {($ VSub_DollarName '$julianightlies') (/winnt/x86/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majminpatch') (-) ($ VSub_DollarName '$shashort') (-win32.exe) } ) (C {(cp)} {(julia-) ($ VSub_DollarName '$version') (-win32.exe)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-win32.exe)} ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-e)} {(codesign.sh)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [(C {(./codesign.sh)})] spids: [16777215 481] ) ] spids: [16777215 494] ) (command.Pipeline children: [ (C {(shasum)} {(-a)} {(256)} {(julia-) ($ VSub_DollarName '$version') (Lit_Other '*')}) (command.SimpleCommand words: [{(grep)} {(-v)} {(-e)} {(sha256)} {(-e)} {(md5)} {(-e)} {(asc)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(julia-) ($ VSub_DollarName '$version') (.sha256)} ) ] ) ] negated: F ) (command.Pipeline children: [ (C {(md5sum)} {(julia-) ($ VSub_DollarName '$version') (Lit_Other '*')}) (command.SimpleCommand words: [{(grep)} {(-v)} {(-e)} {(sha256)} {(-e)} {(md5)} {(-e)} {(asc)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(julia-) ($ VSub_DollarName '$version') (.md5)} ) ] ) ] negated: F ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (-full.tar.gz)} ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (.tar.gz)} ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (-linux-x86_64.tar.gz)} ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (-linux-i686.tar.gz)} ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (-linux-arm.tar.gz)} ) (C {(gpg)} {(-u)} {(julia)} {(--armor)} {(--detach-sig)} {(julia-) ($ VSub_DollarName '$version') (-linux-ppc64le.tar.gz)} ) (C {(aws)} {(configure)}) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(julia-) ($ VSub_DollarName '$version') (.sha256)} {(s3) (Lit_Other ':') (//julialang/bin/checksums/)} ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(julia-) ($ VSub_DollarName '$version') (.md5)} {(s3) (Lit_Other ':') (//julialang/bin/checksums/)} ) (command.ForEach iter_name: plat iter_words: [{(x86_64)} {(i686)} {(arm)} {(ppc64le)}] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:platshort spids:[705]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ VSub_DollarName '$plat')}) (C {(sed)} {(-e)} {(SQ <s/x86_64/x64/>)} {(-e)} {(SQ <s/i686/x86/>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [706 726] ) } spids: [705] ) ] spids: [705] ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(julia-) ($ VSub_DollarName '$version') (-linux-) ($ VSub_DollarName '$plat') (.tar.gz)} {(s3) (Lit_Other ':') (//julialang/bin/linux/) ($ VSub_DollarName '$platshort') (/) ($ VSub_DollarName '$majmin') (/) } ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(julia-) ($ VSub_DollarName '$version') (-linux-) ($ VSub_DollarName '$plat') (.tar.gz.asc) } {(s3) (Lit_Other ':') (//julialang/bin/linux/) ($ VSub_DollarName '$platshort') (/) ($ VSub_DollarName '$majmin') (/) } ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(julia-) ($ VSub_DollarName '$majmin') (-latest-linux-) ($ VSub_DollarName '$plat') (.tar.gz) } {(s3) (Lit_Other ':') (//julialang/bin/linux/) ($ VSub_DollarName '$platshort') (/) ($ VSub_DollarName '$majmin') (/) } ) (C {(curl)} {(-X)} {(PURGE)} {(-L)} { (DQ ('https://julialang-s3.julialang.org/bin/linux/') ($ VSub_DollarName '$platshort') (/) ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majmin') (-latest-linux-) ($ VSub_DollarName '$plat') (.tar.gz) ) } ) ] spids: [702 830] ) spids: [692 700] ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$version') ('-osx10.7 .dmg'))} {(s3) (Lit_Other ':') (//julialang/bin/osx/x64/) ($ VSub_DollarName '$majmin') (/)} ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$majmin') ('-latest-osx10.7 .dmg'))} {(s3) (Lit_Other ':') (//julialang/bin/osx/x64/) ($ VSub_DollarName '$majmin') (/)} ) (C {(curl)} {(-X)} {(PURGE)} {(-L)} { (DQ ('https://julialang-s3.julialang.org/bin/osx/x64/') ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majmin') ('-latest-osx10.7 .dmg') ) } ) (C {(curl)} {(-X)} {(PURGE)} {(-L)} { (DQ ('https://julialang-s3.julialang.org/bin/osx/x64/') ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majmin') ('-latest-osx10.7+.dmg') ) } ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$version') (-win64.exe))} {(s3) (Lit_Other ':') (//julialang/bin/winnt/x64/) ($ VSub_DollarName '$majmin') (/)} ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$majmin') (-latest-win64.exe))} {(s3) (Lit_Other ':') (//julialang/bin/winnt/x64/) ($ VSub_DollarName '$majmin') (/)} ) (C {(curl)} {(-X)} {(PURGE)} {(-L)} { (DQ ('https://julialang-s3.julialang.org/bin/winnt/x64/') ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majmin') (-latest-win64.exe) ) } ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$version') (-win32.exe))} {(s3) (Lit_Other ':') (//julialang/bin/winnt/x86/) ($ VSub_DollarName '$majmin') (/)} ) (C {(aws)} {(s3)} {(cp)} {(--acl)} {(public-read)} {(DQ (julia-) ($ VSub_DollarName '$majmin') (-latest-win32.exe))} {(s3) (Lit_Other ':') (//julialang/bin/winnt/x86/) ($ VSub_DollarName '$majmin') (/)} ) (C {(curl)} {(-X)} {(PURGE)} {(-L)} { (DQ ('https://julialang-s3.julialang.org/bin/winnt/x86/') ($ VSub_DollarName '$majmin') (/julia-) ($ VSub_DollarName '$majmin') (-latest-win32.exe) ) } ) (C {(echo)} {(DQ ('All files prepared. Attach julia-') ($ VSub_DollarName '$version') (.tar.gz))}) (C {(echo)} {(DQ ('and julia-') ($ VSub_DollarName '$version') ('-full.tar.gz to github releases.'))} ) ] )