view more/test.sh @ 1521:12e1cb05ea8c

Tell m68k how to use qemu (even though it doesn't work yet).
author Rob Landley <rob@landley.net>
date Sat, 28 Apr 2012 20:41:56 -0500
parents 95f662f66fe4
children
line wrap: on
line source

#!/bin/bash

# Run a command with sources/include.sh and an architecture loaded

if [ $# -eq 0 ]
then
  echo "Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..." >&2
  exit 1
fi

. sources/include.sh || exit 1

[ "$1" != "host" ] && NO_CLEANUP=1 load_target "$1"
shift
eval "$@"