blob: 91adeee5c9bb73d27e3fc4fbbd9b6114f4b99627 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001## Process this file with automake to produce Makefile.in -*-Makefile-*-
2## Configure input file for elfutils.
3##
Roland McGrath5513e642009-01-11 01:35:11 -08004## Copyright (C) 2004, 2005, 2008, 2009 Red Hat, Inc.
Ulrich Drepper361df7d2006-04-04 21:38:57 +00005## This file is part of Red Hat elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006##
Ulrich Drepper361df7d2006-04-04 21:38:57 +00007## 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.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000010##
Ulrich Drepper361df7d2006-04-04 21:38:57 +000011## 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.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000015##
Ulrich Drepper361df7d2006-04-04 21:38:57 +000016## 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.
19##
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>.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000027##
Roland McGrath5513e642009-01-11 01:35:11 -080028EXTRA_DIST = elfutils.spec.in known-dwarf.awk
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000029
Roland McGrathc6a30042008-12-24 02:00:35 -080030if MAINTAINER_MODE
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000031$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
32 @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
33 date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
34 getent passwd "$$(whoami)" | \
35 awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \
Roland McGrathad112172005-08-13 09:19:34 +000036 echo -n " <$$(whoami)@redhat.com> " >> $$tmpname; \
Roland McGrathc6a30042008-12-24 02:00:35 -080037 awk '\
38 $$1 == "Version" && started { exit } \
39 $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
40 print $$2 "-1"; next } \
41 NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
42 NF == 0 && line != "" { print line; line="" } \
43 END { if (line != "") print line; print "" }' $< \
44 | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000045 sed "/^%changelog/r $$tmpname" $@ > $@.new; \
46 rm -f $$tmpname; \
47 mv -f $@.new $@
Roland McGrathc6a30042008-12-24 02:00:35 -080048endif