#!/bin/sh # # Generic multiarch wrapper for regina-config # # This file must be *exactly* the same across architectures. # Auto-generated regina-config may have different stuff like # libraries for some co-installable architectures. # Better safe than sorry, thus we use this wrapper. # # Copyright (C) 2013-2021 Agustin Martin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General # Public License along with this program. If not, see # . # -------------------------------------------------------------------- DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH` CONFIG_SCRIPT="/usr/lib/${DEB_HOST_MULTIARCH}/regina-rexx/regina-config" if [ -x ${CONFIG_SCRIPT} ]; then ${CONFIG_SCRIPT} "$@" else echo "regina-config wrapper: missing or non executable ${CONFIG_SCRIPT}. Aborting ..." >&2 exit 1 fi