# HG changeset patch # User Rob Landley # Date 1308832865 18000 # Node ID ee222555de529ce168b6a414441420af731472af # Parent 23f4333fec0c8f3212346aaf53605811bbf0ffa8 Print better error message for bad architecture name, idea from Alessio Igor Bogani. diff -r 23f4333fec0c -r ee222555de52 build.sh --- a/build.sh Wed Jun 22 12:53:22 2011 -0500 +++ b/build.sh Thu Jun 23 07:41:05 2011 -0500 @@ -29,16 +29,14 @@ # Where "i686" is whichever target you want the new cross compiler to run on. -# Start with some housekeeping stuff. If this script was run with no -# arguments, list available architectures out of sources/targets. +# If this script was run with no arguments, list available architectures -if [ $# -ne 1 ] +if [ $# -ne 1 ] || [ ! -e sources/targets/"$1" ] then echo "Usage: $0 TARGET" echo "Supported architectures:" - cd sources/targets - ls + ls sources/targets exit 1 fi