[recipes] Generate NEWS from appdata
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Generate NEWS from appdata
- Date: Wed, 14 Dec 2016 16:04:21 +0000 (UTC)
commit f5d83e8b38272719727b291e138187c5b4a9e2dd
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 14 09:39:24 2016 -0500
Generate NEWS from appdata
This is the current best practice.
Makefile.am | 12 +++++++++++-
configure.ac | 5 +++--
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a253dd0..44ef5ef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = . libgd data src po tests
-EXTRA_DIST = AUTHORS
+EXTRA_DIST = AUTHORS NEWS
AUTHORS:
$(AM_V_GEN)if test -d "$(srcdir)/.git"; \
@@ -15,6 +15,15 @@ AUTHORS:
echo Failed to generate $@ >&2 ); \
else touch $@; fi
+NEWS: data/appdata/org.gnome.Recipes.appdata.xml.in
+ $(AM_V_GEN)if test -e $(APPSTREAM_UTIL); then \
+ $(APPSTREAM_UTIL) appdata-to-news $^ > $@; \
+ else \
+ touch $@; \
+ fi
+
+.PHONY: NEWS
+
# Generate the ChangeLog.
@GENERATE_CHANGELOG_RULES@
dist-hook: dist-ChangeLog
@@ -40,6 +49,7 @@ GITIGNOREFILES = \
gtk-doc.m4 \
gtk-doc.make \
INSTALL \
+ NEWS \
$(NULL)
ACLOCAL_AMFLAGS=-I m4 -I libgd
diff --git a/configure.ac b/configure.ac
index a13acf5..6435c0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ dnl ***********************************************************************
dnl Define Versioning Information
dnl ***********************************************************************
m4_define([major_version],[0])
-m4_define([minor_version],[2])
+m4_define([minor_version],[3])
m4_define([micro_version],[0])
m4_define([package_version],[major_version.minor_version.micro_version])
m4_define([bug_report_url],[https://bugzilla.gnome.org/enter_bug.cgi?product=recipes])
@@ -18,7 +18,7 @@ dnl Initialize autoconf
dnl ***********************************************************************
AC_INIT([recipes],[package_version],[bug_report_url])
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_SRCDIR([NEWS])
+AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIRS([m4])
AC_SUBST([ACLOCAL_AMFLAGS], "-I m4 -I libgd")
@@ -71,6 +71,7 @@ AC_PROG_SED
AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources])
+AC_PATH_PROG([APPSTREAM_UTIL],[appstream-util])
PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_CHECK([1.42.0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]