2010-10-18 01:58:59 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-10-18 02:15:48 +03:00
|
|
|
# ##WARN##
|
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
DIST="##DIST##"
|
|
|
|
MANU="##MANU##"
|
|
|
|
|
2010-10-18 02:15:48 +03:00
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo "usage: $0 equ|inv|dsc|chr ..." 1>&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
base=`which "$0"`
|
|
|
|
base=`dirname "$base"`
|
|
|
|
[ "$base" = "${base#/}" ] && base=`pwd`/$base
|
|
|
|
[ . -ef "$base" ] && base=.
|
|
|
|
|
2010-10-21 09:19:53 +03:00
|
|
|
[ "$1" ] || usage
|
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
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;;
|
2010-10-18 02:15:48 +03:00
|
|
|
*)
|
|
|
|
usage;;
|
2010-10-18 01:58:59 +03:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|