gdb/tests/gdb-testsuite-sanity/ref/gen.sh

12 lines
225 B
Bash
Raw Normal View History

#!/bin/bash
BIN=`which gdb` &&
PACKAGE=`rpm -qf --qf='%{name}\n' ${BIN}` &&
SYSTEM=`uname -r | grep -o -E 'el[0-9]+a?|fc[0-9]+'` &&
ARCH=`arch` &&
echo "./ref/${PACKAGE}/${SYSTEM}.${ARCH}" &&
exit 0
echo "ERROR" >&2
exit 1