Debian Codegraph @

debian/regina-config

raw
1 #!/bin/sh
2 #
3 # Generic multiarch wrapper for regina-config
4 #
5 # This file must be *exactly* the same across architectures.
6 # Auto-generated regina-config may have different stuff like
7 # libraries for some co-installable architectures.
8 # Better safe than sorry, thus we use this wrapper.
9 #
10 # Copyright (C) 2013-2021 Agustin Martin <[email protected]>
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU Library General Public
14 # License as published by the Free Software Foundation; either
15 # version 2 of the License, or (at your option) any later version.
16 #
17 # This library is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # Library General Public License for more details.
21 #
22 # You should have received a copy of the GNU Library General
23 # Public License along with this program. If not, see
24 # <http://www.gnu.org/licenses/>.
25 # --------------------------------------------------------------------
26
27 DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
28 CONFIG_SCRIPT="/usr/lib/${DEB_HOST_MULTIARCH}/regina-rexx/regina-config"
29
30 if [ -x ${CONFIG_SCRIPT} ]; then
31 ${CONFIG_SCRIPT} "$@"
32 else
33 echo "regina-config wrapper: missing or non executable ${CONFIG_SCRIPT}. Aborting ..." >&2
34 exit 1
35 fi