Skip to content
Snippets Groups Projects
Commit e928734c authored by Mark Grondona's avatar Mark Grondona
Browse files

o check for inconsistent META information

parent 0a141106
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,10 @@ MINOR="`perl -ne 'print,exit if s/^\s*MINOR:\s*(\S*).*/\1/i' $srcdir/META`" ...@@ -128,6 +128,10 @@ MINOR="`perl -ne 'print,exit if s/^\s*MINOR:\s*(\S*).*/\1/i' $srcdir/META`"
MICRO="`perl -ne 'print,exit if s/^\s*MICRO:\s*(\S*).*/\1/i' $srcdir/META`" MICRO="`perl -ne 'print,exit if s/^\s*MICRO:\s*(\S*).*/\1/i' $srcdir/META`"
RELEASE="`perl -ne 'print,exit if s/^\s*RELEASE:\s*(\S*).*/\1/i' $srcdir/META`" RELEASE="`perl -ne 'print,exit if s/^\s*RELEASE:\s*(\S*).*/\1/i' $srcdir/META`"
if test "$MAJOR.$MINOR.$MICRO" != "$VERSION"; then
AC_MSG_ERROR([META information is inconsistent: $VERSION != $MAJOR.$MINOR.$MICRO!])
fi
# Check to see if we're on an unstable branch (no prereleases yet) # Check to see if we're on an unstable branch (no prereleases yet)
if echo "$RELEASE" | grep -e "pre0" -e "UNSTABLE"; then if echo "$RELEASE" | grep -e "pre0" -e "UNSTABLE"; then
if test "$RELEASE" = "UNSTABLE"; then if test "$RELEASE" = "UNSTABLE"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment