From 0aa16b2a5d19223acb637abe731da10c75d7bd08 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 14 Feb 2009 19:52:56 +0200 Subject: Switch to Git --- Makefile.am | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 332da25..0025b9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ # This file is part of GNU cpio -# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2007, 2009 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,4 +20,40 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = gnits 1.8 dist-bzip2 std-options -SUBDIRS = doc headers lib rmt src po tests +SUBDIRS = doc headers gnu paxlib rmt src po tests + +gen_start_date = 2008-03-07 + +.PHONY: make-ChangeLog +make-ChangeLog: + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog \ + --since=$(gen_start_date) | \ + sed '/$$/d' | fmt -s > $(distdir)/cl-t; \ + cat ChangeLog.cvs | sed '/^Local Variables:/,/^End:/d' \ + >> $(distdir)/cl-t; \ + echo "Local Variables:" >> $(distdir)/cl-t; \ + echo "mode: change-log" >> $(distdir)/cl-t; \ + echo "version-control: never" >> $(distdir)/cl-t; \ + echo "buffer-read-only: t" >> $(distdir)/cl-t; \ + echo "End:" >> $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi + +dist-hook: make-ChangeLog + +.PHONY: ChangeLog +ChangeLog: + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog \ + --since=$(gen_start_date) | \ + sed '/$$/d' | fmt -s > ChangeLog; \ + cat ChangeLog.cvs | sed '/^Local Variables:/,/^End:/d' \ + >> ChangeLog; \ + echo "Local Variables:" >> ChangeLog; \ + echo "mode: change-log" >> ChangeLog; \ + echo "version-control: never" >> ChangeLog; \ + echo "buffer-read-only: t" >> ChangeLog; \ + echo "End:" >> ChangeLog; \ + fi -- cgit v1.2.1