Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in -*-Makefile-*- |
| 2 | ## Configure input file for elfutils. |
| 3 | ## |
Roland McGrath | 5513e64 | 2009-01-11 01:35:11 -0800 | [diff] [blame] | 4 | ## Copyright (C) 2004, 2005, 2008, 2009 Red Hat, Inc. |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 5 | ## This file is part of Red Hat elfutils. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 6 | ## |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 10 | ## |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 15 | ## |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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. |
| 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 Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 27 | ## |
Roland McGrath | 5513e64 | 2009-01-11 01:35:11 -0800 | [diff] [blame] | 28 | EXTRA_DIST = elfutils.spec.in known-dwarf.awk |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 29 | |
Roland McGrath | c6a3004 | 2008-12-24 02:00:35 -0800 | [diff] [blame] | 30 | if MAINTAINER_MODE |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 31 | $(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 McGrath | ad11217 | 2005-08-13 09:19:34 +0000 | [diff] [blame] | 36 | echo -n " <$$(whoami)@redhat.com> " >> $$tmpname; \ |
Roland McGrath | c6a3004 | 2008-12-24 02:00:35 -0800 | [diff] [blame] | 37 | 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 Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 45 | sed "/^%changelog/r $$tmpname" $@ > $@.new; \ |
| 46 | rm -f $$tmpname; \ |
| 47 | mv -f $@.new $@ |
Roland McGrath | c6a3004 | 2008-12-24 02:00:35 -0800 | [diff] [blame] | 48 | endif |