Blame config/Makefile.am

Packit 032894
## Process this file with automake to produce Makefile.in -*-Makefile-*-
Packit 032894
## Configure input file for elfutils.
Packit 032894
##
Packit 032894
## Copyright (C) 2004, 2005, 2008, 2009, 2011, 2015, 2016 Red Hat, Inc.
Packit 032894
## This file is part of elfutils.
Packit 032894
##
Packit 032894
## This file is free software; you can redistribute it and/or modify
Packit 032894
## it under the terms of either
Packit 032894
##
Packit 032894
##   * the GNU Lesser General Public License as published by the Free
Packit 032894
##     Software Foundation; either version 3 of the License, or (at
Packit 032894
##     your option) any later version
Packit 032894
##
Packit 032894
## or
Packit 032894
##
Packit 032894
##   * the GNU General Public License as published by the Free
Packit 032894
##     Software Foundation; either version 2 of the License, or (at
Packit 032894
##     your option) any later version
Packit 032894
##
Packit 032894
## or both in parallel, as here.
Packit 032894
##
Packit 032894
## elfutils is distributed in the hope that it will be useful, but
Packit 032894
## WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 032894
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 032894
## General Public License for more details.
Packit 032894
##
Packit 032894
## You should have received copies of the GNU General Public License and
Packit 032894
## the GNU Lesser General Public License along with this program.  If
Packit 032894
## not, see <http://www.gnu.org/licenses/>.
Packit 032894
##
Packit 032894
EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \
Packit 032894
	     libelf.pc.in libdw.pc.in libdebuginfod.pc.in \
Packit 032894
	     debuginfod.service debuginfod.sysconfig
Packit 032894
Packit 032894
pkgconfigdir = $(libdir)/pkgconfig
Packit 032894
pkgconfig_DATA = libelf.pc libdw.pc libdebuginfod.pc
Packit 032894
Packit 032894
if MAINTAINER_MODE
Packit 032894
$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
Packit 032894
	@tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
Packit 032894
	date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
Packit 032894
	username=$$(git config --get user.name); \
Packit 032894
	useremail=$$(git config --get user.email); \
Packit 032894
	echo -n "$$username <$$useremail> " >> $$tmpname; \
Packit 032894
	awk '\
Packit 032894
	  $$1 == "Version" && started { exit } \
Packit 032894
	  $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
Packit 032894
			     print $$2 "-1"; next } \
Packit 032894
	  NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
Packit 032894
	  NF == 0 && line != "" { print line; line="" } \
Packit 032894
	  END { if (line != "") print line; print "" }' $< \
Packit 032894
	| fold -s -w 70 | sed '1!s/^[^-]/  &/' >> $$tmpname; \
Packit 032894
	sed "/^%changelog/r $$tmpname" $@ > $@.new; \
Packit 032894
	rm -f $$tmpname; \
Packit 032894
	mv -f $@.new $@
Packit 032894
endif