gdb/tests/gdb-testsuite-sanity/ref/gen.sh
2021-11-29 10:58:36 +00:00

12 lines
225 B
Bash
Executable File

#!/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