#!/bin/sh global SRC_DIR := $[pwd] if test ! -d "$SRC_DIR/work/overlay/mll_utils" { echo "The directory $SRC_DIR/work/overlay/mll_utils does not exist. Cannot continue." exit 1 } # Copy all generated files to the source overlay folder. cp -r $SRC_DIR/work/overlay/mll_utils/* \ $SRC_DIR/work/src/minimal_overlay echo "All utilities have been installed." cd $SRC_DIR (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SRC_DIR) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: spids: [5 7] ) } spids: [4] ) ] spids: [4] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} {(DQ ($ VSub_Name "$SRC_DIR") (/work/overlay/mll_utils))} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(echo)} { (DQ ("The directory ") ($ VSub_Name "$SRC_DIR") ("/work/overlay/mll_utils does not exist. Cannot continue.") ) } ) (C {(exit)} {(1)}) ] spids: [-1 27] ) ] spids: [-1 43] ) (C {(cp)} {(-r)} {($ VSub_Name "$SRC_DIR") (/work/overlay/mll_utils/) (Lit_Other "*")} {($ VSub_Name "$SRC_DIR") (/work/src/minimal_overlay)} ) (C {(echo)} {(DQ ("All utilities have been installed."))}) (C {(cd)} {($ VSub_Name "$SRC_DIR")}) ] )