1#!/bin/sh 2 3set -e 4 5if [ $# -ne 1 ]; then 6 echo "Usage: $0 <PATCHES_file>" >&2 7 exit 1 8fi 9 10patches=`cat "$1"` 11 12cat <<EOF 13/* mpfr_get_patches -- Patches that have been applied 14 15Copyright 2007-2023 Free Software Foundation, Inc. 16Contributed by the AriC and Caramba projects, INRIA. 17 18This file is part of the GNU MPFR Library. 19 20The GNU MPFR Library is free software; you can redistribute it and/or modify 21it under the terms of the GNU Lesser General Public License as published by 22the Free Software Foundation; either version 3 of the License, or (at your 23option) any later version. 24 25The GNU MPFR Library is distributed in the hope that it will be useful, but 26WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 27or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 28License for more details. 29 30You should have received a copy of the GNU Lesser General Public License 31along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 32https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 3351 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ 34 35#include "mpfr-impl.h" 36 37const char * 38mpfr_get_patches (void) 39{ 40EOF 41 42# $patches is written as a list of words separated by a space character. 43echo ' return "'$patches'";' 44echo '}' 45