You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dr...@apache.org on 2020/01/18 14:48:12 UTC

svn commit: r1872959 - /httpd/site/trunk/tools/announce.sh

Author: druggeri
Date: Sat Jan 18 14:48:11 2020
New Revision: 1872959

URL: http://svn.apache.org/viewvc?rev=1872959&view=rev
Log:
Make the changes modifier perl script bail if it made no changes

Modified:
    httpd/site/trunk/tools/announce.sh

Modified: httpd/site/trunk/tools/announce.sh
URL: http://svn.apache.org/viewvc/httpd/site/trunk/tools/announce.sh?rev=1872959&r1=1872958&r2=1872959&view=diff
==============================================================================
--- httpd/site/trunk/tools/announce.sh (original)
+++ httpd/site/trunk/tools/announce.sh Sat Jan 18 14:48:11 2020
@@ -108,8 +108,10 @@ echo "Checking $dir..."
           print "$line";
           if (!$added && $line =~ /Changes with Apache $ENV{VERSION}/i) {
             print "\n$ENV{STATUS_UPDATE}\n";
+            $added = 1;
           }
         }
+        die "Did not add this entry to Changes because the $ENV{VERSION} changes heading was not found!" if !$added;
       ' > "$scratch"/tmp_status
       mv "$scratch"/tmp_status "$UPDATE_FILE"
     done