view more/test.sh @ 1450:a96e0dd0dc33

more/test.sh shouldn't zap output directory.
author Rob Landley <rob@landley.net>
date Sun, 25 Sep 2011 22:09:33 -0500
parents b74d36876c0a
children 95f662f66fe4
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

NO_CLEANUP=1 load_target "$1"
shift
eval "$@"