summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2017-01-30 22:57:52 -0500
committerPhil Pennock <pdp@exim.org>2017-01-30 22:58:34 -0500
commit1d2e086378c87cfc0fc437ab7cb7d170526ce46d (patch)
tree724687ca3b41e230746804031a06a379005a14b8
parent93134c3a5998b0c16eeafc5c743c505bce73ae50 (diff)
downloadexim4-1d2e086378c87cfc0fc437ab7cb7d170526ce46d.tar.gz
Abort release process if generated .txt empty
(cherry picked from commit 466581b52b6b33af3f472b9c62d781d6cdf04803) Signed-off-by: Phil Pennock <pdp@exim.org>
-rwxr-xr-xrelease-process/scripts/mk_exim_release1
1 files changed, 1 insertions, 0 deletions
diff --git a/release-process/scripts/mk_exim_release b/release-process/scripts/mk_exim_release
index 17b034e4e..f6cd33c7e 100755
--- a/release-process/scripts/mk_exim_release
+++ b/release-process/scripts/mk_exim_release
@@ -235,6 +235,7 @@ sub move_text_docs_into_pkg {
# move generated documents from docbook stuff
foreach my $file (qw/exim.8 spec.txt filter.txt/) {
+ die "Empty file \"$file\"\n" if -z File::Spec->catfile( $old_docdir, $file );
move( File::Spec->catfile( $old_docdir, $file ), File::Spec->catfile( $new_docdir, $file ) );
}