#!/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"' && NO_CLEANUP=1' load_target $1
shift
eval @ARGV