[exim-cvs] mk_exim_release: output an useful error message w…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] mk_exim_release: output an useful error message when used for older versions
Gitweb: https://git.exim.org/exim.git/commitdiff/aa672401091ae127b095c2bb479f1de6cc4848ff
Commit:     aa672401091ae127b095c2bb479f1de6cc4848ff
Parent:     39244891aea21de27b39b36ba7b16d49a1009df8
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Thu Dec 20 23:06:38 2018 +0100
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu Dec 20 23:06:38 2018 +0100


    mk_exim_release: output an useful error message when used for older versions


    Older releases can't be built with the newer mk_exim_release script,
    as there are interdependencies with scripts/reversion and version.sh
---
 release-process/scripts/mk_exim_release | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/release-process/scripts/mk_exim_release b/release-process/scripts/mk_exim_release
index 2586517..5bda34c 100755
--- a/release-process/scripts/mk_exim_release
+++ b/release-process/scripts/mk_exim_release
@@ -68,6 +68,10 @@ package Context {
         $context->{v}{security} = $+{security};
         $context->{v}{rc} = $+{rc};


+        die "$ME: This script doesn't work for versions prior 4.92-RCx. Please checkout an older version.\n"
+            if $context->{v}{major} < 4
+            or $context->{v}{major} == 4 && $context->{v}{minor} < 92;
+
         ### v: $context->{v}


         # find a valid vcs tag matching the version