#! /bin/sh

#
# SPDX-FileCopyrightText: (c) 2012 Technische Universität Dresden <tu-dresden.de>
#
# SPDX-License-Identifier: BSD-3-Clause
#

#
# Extracts all config header templates from the backend config.h intended
# for the frontend
#

echo "/* Generated from $1 by $0.  */"
echo
LC_ALL=C sed -e '/./{H;$'\!'d;}' -e 'x;/#undef HAVE_BACKEND_/'\!'d' "$1"
