#!/bin/bash # Run a command with sources/include.sh and an architecture loaded if test $Argc -eq 0 { echo "Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..." > !2 exit 1 } source sources/include.sh || exit 1 test $1 != "host" && env NO_CLEANUP=1 load_target $1 shift eval @Argv (CommandList children: [ (If arms: [ (if_arm cond: [(C {(Lit_Other "[")} {($ VSub_Pound "$#")} {(-eq)} {(0)} {(Lit_Other "]")})] action: [ (SimpleCommand words: [{(echo)} {(DQ ("Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..."))}] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[29])] ) (C {(exit)} {(1)}) ] spids: [-1 20] ) ] spids: [-1 37] ) (AndOr children:[(C {(.)} {(sources/include.sh)})(C {(exit)} {(1)})] op_id:Op_DPipe) (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Number "$1"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (host))} {(Lit_Other "]")} ) (SimpleCommand words: [{(load_target)} {(DQ ($ VSub_Number "$1"))}] more_env: [(env_pair name:NO_CLEANUP val:{(1)} spids:[68])] ) ] op_id: Op_DAmp ) (C {(shift)}) (C {(eval)} {(DQ ($ VSub_At "$@"))}) ] )