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