Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting the CVS revision of Zsh
- X-seq: zsh-workers 26315
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxxxxx>
- Subject: Re: Getting the CVS revision of Zsh
- Date: Thu, 15 Jan 2009 19:43:48 +0000
- In-reply-to: <237967ef0901141054y35a4fafdpade3134bc49f69aa@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70901090301h6b309a7cm19c5ebfec989ff2c@xxxxxxxxxxxxxx> <2d460de70901140533icf13f94yc7f63f974b236f45@xxxxxxxxxxxxxx> <090114085737.ZM18662@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0901141054y35a4fafdpade3134bc49f69aa@xxxxxxxxxxxxxx>
On Wed, 14 Jan 2009 19:54:02 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> FWIW, I use a git import which doesn't do any keyword expansion, so
> the define is empty in my case, which obviously breaks the build. I
> don't know if you want to a) not care b) add some #ifdef to set it to
> "unknown" or such or c) add some shell code for git to set it.
>
> If b or c I can construct a patch.
If keyword expansion is properly turned off it shouldn't remove the CVS
one, although I don't know the details of how git works. The second
option is probably the easiest; it's straightforward now sed outputs the
entire line, so the definition is completely missing if not found.
Index: Src/params.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/params.c,v
retrieving revision 1.153
diff -u -r1.153 params.c
--- Src/params.c 15 Jan 2009 14:49:51 -0000 1.153
+++ Src/params.c 15 Jan 2009 19:42:36 -0000
@@ -35,6 +35,11 @@
#define ZSH_PATCHLEVEL CUSTOM_PATCHLEVEL
#else
#include "patchlevel.h"
+
+/* If removed from the ChangeLog for some reason */
+#ifndef ZSH_PATCHLEVEL
+#define ZSH_PATCHLEVEL "unknown"
+#endif
#endif
/* what level of localness we are at */
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author