~ubuntu-branches/ubuntu/quantal/elfutils/quantal

« back to all changes in this revision

Viewing changes to config/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-08-27 15:48:23 UTC
  • Revision ID: james.westby@ubuntu.com-20060827154823-mjwd7ydlbxgwqn4u
Tags: upstream-0.123
ImportĀ upstreamĀ versionĀ 0.123

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in -*-Makefile-*-
 
2
## Configure input file for elfutils.
 
3
##
 
4
## Copyright (C) 2004, 2005 Red Hat, Inc.
 
5
## This file is part of Red Hat elfutils.
 
6
##
 
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.
 
10
##
 
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.
 
15
##
 
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>.
 
27
##
 
28
EXTRA_DIST = elfutils.spec.in
 
29
 
 
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 | \
 
38
          head -n -1 | \
 
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; \
 
40
        echo >> $$tmpname; \
 
41
        sed "/^%changelog/r $$tmpname" $@ > $@.new; \
 
42
        rm -f $$tmpname; \
 
43
        mv -f $@.new $@
 
44
        -@if [ -d $(srcdir)/CVS ]; then \
 
45
          cd $(srcdir); \
 
46
          cvs ci -m "Added changelog." $(@F); \
 
47
        fi