Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

ZSH_EXTRAVERSION [was Re: Segfault with newer .zwc]



On Tue, Jan 15, 2008 at 09:10:25AM +0000, Peter Stephenson wrote:
> That seems OK; it probably ought to be mentioned in
> Etc/zsh-development-guide.

I don't particularly like the way this sounds, but..

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.87
diff -u -r1.87 configure.ac
--- configure.ac	14 Dec 2007 15:14:05 -0000	1.87
+++ configure.ac	18 Jan 2008 16:59:11 -0000
@@ -31,6 +31,7 @@
 
 dnl What version of zsh are we building ?
 . ${srcdir}/Config/version.mk
+VERSION="$VERSION$ZSH_EXTRAVERSION"
 echo "configuring for zsh $VERSION"
 
 dnl ----------------------------------------------
Index: Etc/zsh-development-guide
===================================================================
RCS file: /cvsroot/zsh/zsh/Etc/zsh-development-guide,v
retrieving revision 1.15
diff -u -r1.15 zsh-development-guide
--- Etc/zsh-development-guide	3 Dec 2007 19:04:09 -0000	1.15
+++ Etc/zsh-development-guide	18 Jan 2008 16:59:12 -0000
@@ -856,3 +856,13 @@
   distribution, but that need to be present in the CVS tree.  This
   variable is not used by the zsh build process and is present for
   the convenience of external checks.
+
+Version Suffixes
+----------------
+The configure script reads the version number from Config/version.mk.
+If the environment variable ZSH_EXTRAVERSION is set, the string
+contained therein will be appended to the version string.  For example,
+if Config/version.mk contains "VERSION=4.3.4-dev-7" and
+ZSH_EXTRAVERSION is set to "-ca", $ZSH_VERSION in the shell built from
+that run will equal "4.3.4-dev-7-ca".  Caution is recommended when
+using this feature, as is-at-least may misunderstand your conventions.



Messages sorted by: Reverse Date, Date, Thread, Author