#!/usr/bin/env bash
# Copyright (c) 2016-2019 The Bitcoin Core developers
# Copyright (c) 2020-2021 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

export LC_ALL=C
set -e

{
    echo "-N"
    echo "--version-string=v@CMAKE_PROJECT_VERSION@"
    echo "[COPYRIGHT]"
    ../../src/bitcoind -version | sed -n '1!p'
} > footer.h2m

