summaryrefslogtreecommitdiffstats
path: root/mantools/check-snapshot-nonprod
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:42:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:42:27 +0000
commit95f5f6d1c3aec1cb62525f5162e71a4157aca717 (patch)
tree8633546094df32b27d719c7578537e6062aa52e3 /mantools/check-snapshot-nonprod
parentReleasing progress-linux version 3.8.6-1~progress7.99u1. (diff)
downloadpostfix-95f5f6d1c3aec1cb62525f5162e71a4157aca717.tar.xz
postfix-95f5f6d1c3aec1cb62525f5162e71a4157aca717.zip
Merging upstream version 3.9.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mantools/check-snapshot-nonprod')
-rwxr-xr-xmantools/check-snapshot-nonprod13
1 files changed, 13 insertions, 0 deletions
diff --git a/mantools/check-snapshot-nonprod b/mantools/check-snapshot-nonprod
new file mode 100755
index 0000000..e18f6aa
--- /dev/null
+++ b/mantools/check-snapshot-nonprod
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+version=$(basename $(env - pwd)) || exit 1
+case "$version" in
+postfix-[0-9]*.[0-9]*.[0-9]*)
+ test -f conf/makedefs.out || {
+ echo "Error: no conf/makedefs.out" 1>&2; exit 1; }
+ grep 'CCARGS.*-DSNAPSHOT' conf/makedefs.out && {
+ echo "Error: stable release builds with -DSNAPSHOT" 1>&2, exit 1; }
+ grep 'CCARGS.*-DNONPROD' conf/makedefs.out && {
+ echo "Error: stable release builds with -DNONPROD" 1>&2, exit 1; }
+ ;;
+esac