[beast: 16/24] BUILD: catch cases where an empty ChangeLog is generated
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 16/24] BUILD: catch cases where an empty ChangeLog is generated
- Date: Wed, 16 Sep 2015 08:51:20 +0000 (UTC)
commit 986419e8187841743564c84b19e98281c0d1fd61
Author: Tim Janik <timj gnu org>
Date: Mon Sep 14 13:02:16 2015 +0200
BUILD: catch cases where an empty ChangeLog is generated
Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1241dd1..51344ed 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -51,6 +51,7 @@ ChangeLog: $(GITSTAMPS)
$(Q) sed 's/^/ /; s/^ ^^// ; s/[[:space:]]\+$$// ' -i xgen-$(@F) # Tab-indent commit bodies,
kill trailing whitespaces
$(Q) sed '/^\s*$$/{ N; /^\s*\n\s*$$/D }' -i xgen-$(@F) # Compress multiple newlines
$(Q) mv xgen-$(@F) $@
+ $(Q) test -s $@ || { mv $@ $ empty ; ls -al --full-time $ empty ; exit 1 ; }
noinst_DATA += ChangeLog
MAINTAINERCLEANFILES += ChangeLog
EXTRA_DIST += ChangeLog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]