view more/test.sh @ 1211:e0c2ba5cc233

If environment sanitizing lets TOOLCHAIN_PREFIX through, it should let HOST_ARCH through too. And while we're at it, separate inherited variables from locally defined ones.
author Rob Landley <rob@landley.net>
date Mon, 16 Aug 2010 21:38:33 -0500
parents 300e6d919d86
children 3e7bf55b1bfb
line wrap: on
line source

#!/bin/bash

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

if [ $# -eq 0 ]
then
  echo "Usage: test.sh ARCH COMMAND..." >&2
  echo "You generally want to set STAGE_NAME= too."
  exit 1
fi

. sources/include.sh || exit 1

read_arch_dir "$1"
shift
eval "$@"