view sources/more/test.sh @ 1086:59281941172b

Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
author Rob Landley <rob@landley.net>
date Sun, 16 May 2010 20:08:51 -0500
parents
children b7efc55a3b09
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
"$@"