From 466581b52b6b33af3f472b9c62d781d6cdf04803 Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Mon, 30 Jan 2017 22:57:52 -0500 Subject: [PATCH] Abort release process if generated .txt empty --- release-process/scripts/mk_exim_release | 1 + 1 file changed, 1 insertion(+) 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 ) ); } -- 2.25.1