From nobody Wed May 14 19:36:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1520966577816834.5667505033937; Tue, 13 Mar 2018 11:42:57 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 007C25BEC9; Tue, 13 Mar 2018 18:42:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7097E5D9C6; Tue, 13 Mar 2018 18:42:55 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E01034CABE; Tue, 13 Mar 2018 18:42:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2DIgraK020512 for ; Tue, 13 Mar 2018 14:42:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id 238722026E04; Tue, 13 Mar 2018 18:42:53 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.98]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF1682026DFD for ; Tue, 13 Mar 2018 18:42:52 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 13 Mar 2018 19:42:43 +0100 Message-Id: <20180313184247.29212-2-abologna@redhat.com> In-Reply-To: <20180313184247.29212-1-abologna@redhat.com> References: <20180313184247.29212-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/5] NEWS: Move generation to the docs/ directory X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 13 Mar 2018 18:42:56 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" All the input files and scripts used to generate the release notes live in the docs/ directory, so it makes sense for the output file to be created there as well. A symbolic link is created in the top-level source directory to comply with GNU standards as well as user expectations. Signed-off-by: Andrea Bolognani --- .gitignore | 1 + Makefile.am | 24 +++++------------------- docs/Makefile.am | 24 ++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 2ca7d9776e..234993cdcb 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,7 @@ /configure /configure.lineno /conftest.* +/docs/NEWS /docs/aclperms.htmlinc /docs/apibuild.py.stamp /docs/devhelp/libvirt.devhelp diff --git a/Makefile.am b/Makefile.am index 81c7f52d9c..93d1351656 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,25 +46,11 @@ EXTRA_DIST =3D \ pkgconfigdir =3D $(libdir)/pkgconfig pkgconfig_DATA =3D libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin= .pc =20 -NEWS: \ - $(srcdir)/docs/news.xml \ - $(srcdir)/docs/news-ascii.xsl \ - $(srcdir)/docs/reformat-news.py - $(AM_V_GEN) \ - if [ -x $(XSLTPROC) ]; then \ - $(XSLTPROC) --nonet \ - $(srcdir)/docs/news-ascii.xsl \ - $(srcdir)/docs/news.xml \ - >$@-tmp \ - || { rm -f $@-tmp; exit 1; }; \ - $(srcdir)/docs/reformat-news.py $@-tmp >$@ \ - || { rm -f $@-tmp; exit 1; }; \ - rm -f $@-tmp; \ - fi -EXTRA_DIST +=3D \ - $(srcdir)/docs/news.xml \ - $(srcdir)/docs/news-ascii.xsl \ - $(srcdir)/docs/reformat-news.py +NEWS: $(builddir)/docs/NEWS + $(LN_S) -f $< $@ + +$(builddir)/docs/NEWS: + $(MAKE) $(AM_MAKEFLAGS) -C docs NEWS =20 rpm: clean @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz) diff --git a/docs/Makefile.am b/docs/Makefile.am index 9620587a77..3259799e4f 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -197,6 +197,8 @@ MAINTAINERCLEANFILES =3D \ $(addprefix $(srcdir)/,$(dot_php)) \ $(srcdir)/hvsupport.html.in $(srcdir)/aclperms.htmlinc =20 +CLEANFILES =3D + timestamp=3D"$(shell if test -n "$$SOURCE_DATE_EPOCH"; \ then \ date -u --date=3D"@$$SOURCE_DATE_EPOCH"; \ @@ -244,6 +246,28 @@ EXTRA_DIST +=3D \ MAINTAINERCLEANFILES +=3D \ $(srcdir)/news.html.in =20 +NEWS: \ + $(srcdir)/news.xml \ + $(srcdir)/news-ascii.xsl \ + $(srcdir)/reformat-news.py + $(AM_V_GEN) \ + if [ -x $(XSLTPROC) ]; then \ + $(XSLTPROC) --nonet \ + $(srcdir)/news-ascii.xsl \ + $(srcdir)/news.xml \ + >$@-tmp \ + || { rm -f $@-tmp; exit 1; }; \ + $(srcdir)/reformat-news.py $@-tmp >$@ \ + || { rm -f $@-tmp; exit 1; }; \ + rm -f $@-tmp; \ + fi +EXTRA_DIST +=3D \ + $(srcdir)/news.xml \ + $(srcdir)/news-ascii.xsl \ + $(srcdir)/reformat-news.py +CLEANFILES +=3D \ + NEWS + %.png: %.fig convert -rotate 90 $< $@ =20 --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list