(command.CommandList children: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-lt>} {<3>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (DQ <'Usage: '> ($ Id.VSub_Number 0) <' [-b] image-label image-name base-bits-dir [extra-bits-dir]'> ) } ] redirects: [(Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/stderr'>})] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [72 85] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_Number 1))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <-b> pattern: (pat.Words words:[{<-b>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'BOPT='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOPT='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOPT='> name:BOPT) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 1))} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.CommandList children: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'LABEL='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'LABEL='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LABEL='> name:LABEL) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ ($ Id.VSub_Number 1))}] redirects: [] do_fork: T ) (command.Simple blame_tok: <tr> more_env: [] words: [{<tr>} {(SQ <'[:lower:]'>)} {(SQ <'[:upper:]'>)}] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _>] ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>}] redirects: [] do_fork: T ) ] ) (command.CommandList children: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'NAME='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'NAME='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NAME='> name:NAME) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 1))} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>}] redirects: [] do_fork: T ) ] ) (command.ShAssignment left: <Id.Lit_VarLike 'BASEBITSDIR='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BASEBITSDIR='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASEBITSDIR='> name:BASEBITSDIR) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 1))} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'publisher='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'publisher='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'publisher='> name:publisher) op: assign_op.Equal rhs: {(DQ <'The FreeBSD Project. http://www.FreeBSD.org/'>)} ) ] redirects: [] ) (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'/dev/iso9660/'> ($ Id.VSub_DollarName LABEL) <' / cd9660 ro 0 0'>)}] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {(DQ ($ Id.VSub_DollarName BASEBITSDIR) <'/etc/fstab'>)} ) ] do_fork: T ) (command.Simple blame_tok: <makefs> more_env: [] words: [ {<makefs>} {<-t>} {<cd9660>} {<-o>} {<rockridge>} {<-o>} {<Id.Lit_VarLike 'label='> (DQ ($ Id.VSub_DollarName LABEL))} {<-o>} {<Id.Lit_VarLike 'publisher='> (DQ ($ Id.VSub_DollarName publisher))} {(DQ ($ Id.VSub_DollarName NAME) <.tmp>)} {(DQ ($ Id.VSub_At '@'))} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <rm> more_env: [] words: [{<rm>} {<-f>} {(DQ ($ Id.VSub_DollarName BASEBITSDIR) <'/etc/fstab'>)}] redirects: [] do_fork: T ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_DollarName BOPT))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <x-b>)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <mv> more_env: [] words: [{<mv>} {(DQ ($ Id.VSub_DollarName NAME) <.tmp>)} {(DQ ($ Id.VSub_DollarName NAME))}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] spids: [237 256] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'TMPIMGDIR='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'TMPIMGDIR='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TMPIMGDIR='> name:TMPIMGDIR) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <mktemp> more_env: [] words: [{<mktemp>} {<-d>} {<'/tmp/bootfs.XXXXXXXX'>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.ShAssignment left: <Id.Lit_VarLike 'BOOTFSDIR='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOOTFSDIR='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOOTFSDIR='> name:BOOTFSDIR) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName TMPIMGDIR) <'/bootfs'>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'BOOTFSIMG='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOOTFSIMG='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOOTFSIMG='> name:BOOTFSIMG) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName TMPIMGDIR) <'/bootfs.img'>)} ) ] redirects: [] ) (command.Simple blame_tok: <mkdir> more_env: [] words: [{<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName BOOTFSDIR) <'/boot'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <cp> more_env: [] words: [ {<cp>} {<-p>} {(DQ ($ Id.VSub_DollarName BASEBITSDIR) <'/boot/loader'>)} {(DQ ($ Id.VSub_DollarName BOOTFSDIR) <'/boot'>)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <makefs> more_env: [] words: [ {<makefs>} {<-t>} {<ffs>} {<-B>} {<be>} {<-M>} {<512k>} {(DQ ($ Id.VSub_DollarName BOOTFSIMG))} {(DQ ($ Id.VSub_DollarName BOOTFSDIR))} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> (DQ ($ Id.VSub_DollarName BASEBITSDIR) <'/boot/boot1'>)} {<Id.Lit_VarLike 'of='> (DQ ($ Id.VSub_DollarName BOOTFSIMG))} {<Id.Lit_VarLike 'bs='> <512>} {<Id.Lit_VarLike 'conv='> <notrunc> <Id.Lit_Comma ','> <sync>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <Id.Lit_Colon ':'> more_env: [] words: [ {<Id.Lit_Colon ':'>} { (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Name CYLSIZE> var_name: CYLSIZE suffix_op: (suffix_op.Unary op:<Id.VTest_ColonEquals _> arg_word:{<640>}) right: <Id.Right_DollarBrace '}'> ) } ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'ISOSIZE='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'ISOSIZE='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ISOSIZE='> name:ISOSIZE) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <stat> more_env: [] words: [ {<stat>} {<-f>} {<Id.Lit_Other '%'> <z>} {(DQ ($ Id.VSub_DollarName NAME) <.tmp>)} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'ISOBLKS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'ISOBLKS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ISOBLKS='> name:ISOBLKS) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Slash left: (arith_expr.Binary op_id: Id.Arith_Plus left: {($ Id.VSub_DollarName ISOSIZE)} right: {<Id.Lit_Digits 511>} ) right: {<Id.Lit_Digits 512>} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'ISOCYLS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'ISOCYLS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ISOCYLS='> name:ISOCYLS) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Slash left: (arith_expr.Binary op_id: Id.Arith_Plus left: {($ Id.VSub_DollarName ISOBLKS)} right: (arith_expr.Binary op_id: Id.Arith_Minus left: {($ Id.VSub_DollarName CYLSIZE)} right: {<Id.Lit_Digits 1>} ) ) right: {($ Id.VSub_DollarName CYLSIZE)} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'BOOTFSSIZE='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOOTFSSIZE='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOOTFSSIZE='> name:BOOTFSSIZE) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <stat> more_env: [] words: [ {<stat>} {<-f>} {<Id.Lit_Other '%'> <z>} {(DQ ($ Id.VSub_DollarName BOOTFSIMG))} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'BOOTFSBLKS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOOTFSBLKS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOOTFSBLKS='> name:BOOTFSBLKS) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Slash left: (arith_expr.Binary op_id: Id.Arith_Plus left: {($ Id.VSub_DollarName BOOTFSSIZE)} right: {<Id.Lit_Digits 511>} ) right: {<Id.Lit_Digits 512>} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'BOOTFSCYLS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'BOOTFSCYLS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BOOTFSCYLS='> name:BOOTFSCYLS) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Slash left: (arith_expr.Binary op_id: Id.Arith_Plus left: {($ Id.VSub_DollarName BOOTFSBLKS)} right: (arith_expr.Binary op_id: Id.Arith_Minus left: {($ Id.VSub_DollarName CYLSIZE)} right: {<Id.Lit_Digits 1>} ) ) right: {($ Id.VSub_DollarName CYLSIZE)} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'ENDCYL='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'ENDCYL='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ENDCYL='> name:ENDCYL) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Plus left: {($ Id.VSub_DollarName ISOCYLS)} right: {($ Id.VSub_DollarName BOOTFSCYLS)} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'NSECTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'NSECTS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NSECTS='> name:NSECTS) op: assign_op.Equal rhs: { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Star left: (arith_expr.Binary op_id: Id.Arith_Star left: {($ Id.VSub_DollarName ENDCYL)} right: {<Id.Lit_Digits 1>} ) right: {($ Id.VSub_DollarName CYLSIZE)} ) right: <Id.Right_DollarDParen _> ) } ) ] redirects: [] ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> (DQ ($ Id.VSub_DollarName NAME) <.tmp>)} {<Id.Lit_VarLike 'of='> (DQ ($ Id.VSub_DollarName NAME))} {<Id.Lit_VarLike 'bs='> (DQ (${ Id.VSub_Name CYLSIZE) <b>)} {<Id.Lit_VarLike 'conv='> <notrunc> <Id.Lit_Comma ','> <sync>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> (DQ ($ Id.VSub_DollarName BOOTFSIMG))} {<Id.Lit_VarLike 'of='> (DQ ($ Id.VSub_DollarName NAME))} {<Id.Lit_VarLike 'bs='> (DQ (${ Id.VSub_Name CYLSIZE) <b>)} {<Id.Lit_VarLike 'seek='> ($ Id.VSub_DollarName ISOCYLS)} {<Id.Lit_VarLike 'conv='> <notrunc> <Id.Lit_Comma ','> <sync>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/zero'>} {<Id.Lit_VarLike 'of='> (DQ ($ Id.VSub_DollarName NAME))} {<Id.Lit_VarLike 'bs='> (DQ (${ Id.VSub_Name CYLSIZE) <b>)} {<Id.Lit_VarLike 'seek='> ($ Id.VSub_DollarName ENDCYL)} {<Id.Lit_VarLike 'count='> <2>} {<Id.Lit_VarLike 'conv='> <notrunc> <Id.Lit_Comma ','> <sync>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <rm> more_env: [] words: [ {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName NAME) <.tmp>)} {(DQ ($ Id.VSub_DollarName TMPIMGDIR))} ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'MD='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'MD='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'MD='> name:MD) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <mdconfig> more_env: [] words: [ {<mdconfig>} {<-a>} {<-t>} {<vnode>} {<-S>} {<512>} {<-y>} {<1>} {<-x>} {(DQ ($ Id.VSub_DollarName CYLSIZE))} {<-f>} {(DQ ($ Id.VSub_DollarName NAME))} ] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.Simple blame_tok: <gpart> more_env: [] words: [{<gpart>} {<create>} {<-s>} {<VTOC8>} {($ Id.VSub_DollarName MD)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <gpart> more_env: [] words: [ {<gpart>} {<add>} {<-i>} {<1>} {<-s>} { (DQ (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Star left: (arith_expr.Binary op_id: Id.Arith_Star left: {($ Id.VSub_DollarName ISOCYLS)} right: {($ Id.VSub_DollarName CYLSIZE)} ) right: {<Id.Lit_Digits 512>} ) right: <Id.Right_DollarDParen _> ) <b> ) } {<-t>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\!'> ch:'!') <4>} {($ Id.VSub_DollarName MD)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <gpart> more_env: [] words: [ {<gpart>} {<add>} {<-i>} {<6>} {<-s>} { (DQ (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Star left: (arith_expr.Binary op_id: Id.Arith_Star left: {($ Id.VSub_DollarName BOOTFSCYLS)} right: {($ Id.VSub_DollarName CYLSIZE)} ) right: {<Id.Lit_Digits 512>} ) right: <Id.Right_DollarDParen _> ) <b> ) } {<-t>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\!'> ch:'!') <2>} {($ Id.VSub_DollarName MD)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <mdconfig> more_env: [] words: [ {<mdconfig>} {<-d>} {<-u>} { (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Name MD> var_name: MD suffix_op: (suffix_op.Unary op:<Id.VOp1_Pound '#'> arg_word:{<md>}) right: <Id.Right_DollarBrace '}'> ) } ] redirects: [] do_fork: T ) ] )