multilib-rpm-config/multilib-library
Petr Šabata 1d85d8a006 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/multilib-rpm-config#385d8b95b889e9268ceb4d65a075bdf2f9e0c804
2020-10-15 20:38:40 +02:00

56 lines
726 B
Bash

progname=$(basename "$0")
opt_verbose=:
opt_arch=$(uname -i)
multilib_arches="
i386 x86_64
ppc ppc64
s390 s390x
sparc sparc64
"
verbose ()
{
$opt_verbose && echo >&2 "INFO: $progname: $*"
}
die ()
{
echo >&2 " # $*"
print_help 1
}
error ()
{
error_occurred=:
echo >&2 " ! $*"
}
is_multilib ()
{
_m_result=false
for _m_arch in $multilib_arches
do
if test "$_m_arch" = "$1"; then
_m_result=:
break
fi
done
$_m_result
}
fix_arch ()
{
eval "_arch=\$$1"
case $_arch in
# See rhbz#1242873 for more info.
ppc64p7)
eval "$1=ppc64"
;;
esac
}
error_occurred=false
# vi: ft=sh