]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Clarify rationale for gl_INIT_PACKAGE.
authorBruno Haible <bruno@clisp.org>
Tue, 7 Dec 2021 20:13:43 +0000 (21:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Sep 2022 10:07:57 +0000 (12:07 +0200)
* libtextstyle/m4/init-package-version.m4: Add more comments.

libtextstyle/m4/init-package-version.m4

index a26b1ab88158d149b5a0de2318f58b426d66e265..823afc6f77e9bcaa5e82cc7141427714fa80ac73 100644 (file)
@@ -1,4 +1,4 @@
-# init-package-version.m4 serial 2
+# init-package-version.m4 serial 3
 dnl Copyright (C) 1992-2021 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
@@ -61,6 +61,28 @@ dnl the same distribution terms as the rest of that program.
 #   . $srcdir/../version.sh
 #   gl_INIT_PACKAGE(PACKAGE, $VERSION_NUMBER)
 #   AM_INIT_AUTOMAKE([OPTIONS])
+#
+# and after changing version.sh, the developer can directly configure and build:
+#
+#   make distclean
+#   ./configure
+#   make
+#
+# Some other packages use another approach:
+#
+#   AC_INIT(PACKAGE,
+#           m4_normalize(m4_esyscmd([. ./version.sh; echo $VERSION_NUMBER])))
+#   AC_CONFIG_SRCDIR(WITNESS)
+#   AM_INIT_AUTOMAKE([OPTIONS])
+#
+# but here, after changing version.sh, the developer must first regenerate the
+# configure file:
+#
+#   make distclean
+#   ./autogen.sh --skip-gnulib
+#   ./configure
+#   make
+#
 
 # gl_INIT_PACKAGE(PACKAGE-NAME, VERSION)
 # --------------------------------------