1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-10-01 11:46:22 +03:00
eda-tools/boom/boom-config.in
Werner Almesberger 0a86c10803 Generate script boom-config that lists all the database paths, like pkg-config
- boom/Makefile: generate boom-config
- boom/boom-config.in: template for boom-config script
- boom/Makefile (EQU, INV, DSC, CHR): use boom-config
- boom/test/Makefile (EQU, INV, DSC, CHR): use boom-config
2010-10-17 19:58:59 -03:00

26 lines
504 B
Bash

#!/bin/sh
DIST="##DIST##"
MANU="##MANU##"
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;;
esac
shift
done
exit 0