Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 7a0bae78abe0d10755f1cb18603e6958 > files > 4

kannel-1.4.3-4.fc13.src.rpm

#!/bin/sh
#
# Fedora specific hack in order to have an identical script across all archs
# which won't create multilib conflicts.

# Always prefer 64bit over 32bit, hardcode the multilib archs here
for ARCH in x86_64 ia64 s390; do
    [ -x /usr/bin/gw-config.${ARCH} ] && exec /usr/bin/gw-config.${ARCH} $*
done

# No multilib, execute the first one found (there should be only one anyway)
CONFIGSCRIPT=$(ls -1 /usr/bin/gw-config.* 2>/dev/null | head -n 1)

if [ -x "${CONFIGSCRIPT}" ]; then
    exec ${CONFIGSCRIPT} $*
else
    echo "Not a single /usr/bin/gw-config.* script found. Please check why."
    exit 1
fi