[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] configure: print proper message for test releases
From: |
Stefano Lattarini |
Subject: |
[PATCH] configure: print proper message for test releases |
Date: |
Thu, 8 Dec 2011 23:05:10 +0100 |
Another minor maintenance patch to be applied after the 1.11.2 release.
But this is not a good reason not to ask for a review earlier ;-)
-*-*-*-
* configure.ac: If the current release is detected to be a test
release or a development snapshot, print a proper warning for
the user.
* README-alpha: Delete, it's obsolete now (and in fact this file
hasn't been touched in eleven years, since release 1.4b or so).
---
ChangeLog | 9 +++++++++
README-alpha | 9 ---------
configure | 21 +++++++++++++++++++++
configure.ac | 21 +++++++++++++++++++++
4 files changed, 51 insertions(+), 9 deletions(-)
delete mode 100644 README-alpha
diff --git a/ChangeLog b/ChangeLog
index b152022..a95f0dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-12-08 Stefano Lattarini <address@hidden>
+
+ configure: print proper message for test releases
+ * configure.ac: If the current release is detected to be a test
+ release or a development snapshot, print a proper warning for
+ the user.
+ * README-alpha: Delete, it's obsolete now (and in fact this file
+ hasn't been touched in eleven years, since release 1.4b or so).
+
2011-12-04 Stefano Lattarini <address@hidden>
tests: fix spurious failures due to missing 'yywrap()' function
diff --git a/README-alpha b/README-alpha
deleted file mode 100644
index 193a6dd..0000000
--- a/README-alpha
+++ /dev/null
@@ -1,9 +0,0 @@
-This is a test release of this package. Using it more or less
-implicitly signs you up to help me find whatever problems you report.
-
-The documentation still needs more work. Suggestions welcome.
-Patches even more welcome.
-
-Please send comments and problem reports about this test release to
address@hidden This program will get better only if you report the
-problems you encounter.
diff --git a/configure b/configure
index 7f3a0db..3202969 100755
--- a/configure
+++ b/configure
@@ -3978,3 +3978,24 @@ if test -n "$ac_unrecognized_opts" && test
"$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+# Inform the user if this version of automake is a beta release or
+# a development snapshot.
+
+am_version_rx='[1-9]\.[0-9]+(\.[0-9]+)?'
+
+am_release_type=`$as_echo "$PACKAGE_VERSION" | LC_ALL=C awk "
+ /^$am_version_rx[a-z]$/ { print \"beta version\"; exit(0); }
+ /^$am_version_rx$/ { print \"stable\"; exit(0); }
+ { print \"development snapshot\"; }"`
+
+test "$am_release_type" = stable || cat <<EOF
+
+WARNING: You are about to use a $am_release_type of automake.
+WARNING: It might easily suffer from new bugs or regressions.
+WARNING: You are strongly advised not to use it in production code.
+
+Please report bugs, problems and feedback to <address@hidden>.
+EOF
+
+as_fn_exit 0
diff --git a/configure.ac b/configure.ac
index b01026d..b985e5e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,3 +217,24 @@
AC_CONFIG_FILES([tests/automake-${APIVERSION}:tests/automake.in],
[chmod +x tests/automake-${APIVERSION}])
AC_OUTPUT
+
+# Inform the user if this version of automake is a beta release or
+# a development snapshot.
+
+am_version_rx='[[1-9]\.[0-9]+(\.[0-9]+)?]'
+
+am_release_type=`AS_ECHO(["$PACKAGE_VERSION"]) | LC_ALL=C awk ["
+ /^$am_version_rx[a-z]$/ { print \"beta version\"; exit(0); }
+ /^$am_version_rx$/ { print \"stable\"; exit(0); }
+ { print \"development snapshot\"; }"]`
+
+test "$am_release_type" = stable || cat <<EOF
+
+WARNING: You are about to use a $am_release_type of automake.
+WARNING: It might easily suffer from new bugs or regressions.
+WARNING: You are strongly advised not to use it in production code.
+
+Please report bugs, problems and feedback to <address@hidden>.
+EOF
+
+AS_EXIT([0])
--
1.7.2.3
- [PATCH] configure: print proper message for test releases,
Stefano Lattarini <=