#!/bin/sh
#
# Generic multiarch wrapper for xcurses-config
#
# This file must be *exactly* the same across architectures.
# Auto-generated xcurses-config may have different stuff like
# libraries for some co-installable architectures.
# Better safe than sorry, thus we use this wrapper.
#
# Copyright (C) 2013 Agustin Martin <agmartin@debian.org>

CONFIG_SCRIPT="/usr/lib/pdcurses/xcurses-config"

if [ -x ${CONFIG_SCRIPT} ]; then
    ${CONFIG_SCRIPT} "$@"
else
    echo "xcurses-config wrapper: missing or non executable ${CONFIG_SCRIPT}. Aborting ..." >&2
    exit 1
fi
