summaryrefslogtreecommitdiffstats
path: root/mantools/check-snapshot-nonprod
blob: e18f6aa20c86c86c682ef94c9839dd40cf50c00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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