1
## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
## Configure input file for elfutils.
4
## Copyright (C) 2004, 2005 Red Hat, Inc.
5
## This file is part of Red Hat elfutils.
7
## Red Hat elfutils is free software; you can redistribute it and/or modify
8
## it under the terms of the GNU General Public License as published by the
9
## Free Software Foundation; version 2 of the License.
11
## Red Hat elfutils is distributed in the hope that it will be useful, but
12
## WITHOUT ANY WARRANTY; without even the implied warranty of
13
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
## General Public License for more details.
16
## You should have received a copy of the GNU General Public License along
17
## with Red Hat elfutils; if not, write to the Free Software Foundation,
18
## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20
## Red Hat elfutils is an included package of the Open Invention Network.
21
## An included package of the Open Invention Network is a package for which
22
## Open Invention Network licensees cross-license their patents. No patent
23
## license is granted, either expressly or impliedly, by designation as an
24
## included package. Should you wish to participate in the Open Invention
25
## Network licensing program, please visit www.openinventionnetwork.com
26
## <http://www.openinventionnetwork.com>.
28
EXTRA_DIST = elfutils.spec.in
30
$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
31
@tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
32
date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
33
getent passwd "$$(whoami)" | \
34
awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \
35
echo -n " <$$(whoami)@redhat.com> " >> $$tmpname; \
36
sed 's/Version \(.*\):$$/\1-1/;q' $(top_srcdir)/NEWS >> $$tmpname; \
37
sed '2,/^Version /p;d' $(top_srcdir)/NEWS | \
39
awk '{ if ($$0 == "") { if (line != "") { printf "- "; fflush(); system("echo \"" line "\" | fold -w 70"); line=""; } } else { line=line $$0; }} END { if (line != "") { printf "- "; system("echo \"" line "\" | fold -w 70")}}' >> $$tmpname; \
41
sed "/^%changelog/r $$tmpname" $@ > $@.new; \
44
-@if [ -d $(srcdir)/CVS ]; then \
46
cvs ci -m "Added changelog." $(@F); \