1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-01 20:26:15 +02:00
eda-tools/boom/boom-config.in
Werner Almesberger 9e9eb89f3b Make boom-config complain about usage errors.
- boom/Makefile, boom/boom-config.in: add a warning to boom-config that the
  file is machine-generated
- boom/boom-config.in (usage): complain about unrecognized keywords
2010-10-17 20:15:48 -03:00

38 lines
605 B
Bash

#!/bin/sh
# ##WARN##
DIST="##DIST##"
MANU="##MANU##"
usage()
{
echo "usage: $0 equ|inv|dsc|chr ..." 1>&2
exit 1
}
base=`which "$0"`
base=`dirname "$base"`
[ "$base" = "${base#/}" ] && base=`pwd`/$base
[ . -ef "$base" ] && base=.
while [ "$1" ]; do
case "$1" in
equ)
for n in $DIST; do echo "$base/dist/$n/db/all.equ"; done;;
inv)
for n in $DIST; do echo "$base/dist/$n/db/all.inv"; done;;
dsc)
for n in $DIST; do echo "$base/dist/$n/db/all.dsc"; done;;
chr)
for n in $MANU; do echo "$base/manu/$n/$n.chr"; done;;
*)
usage;;
esac
shift
done
exit 0