diff options
| author | Tom Yu <tlyu@mit.edu> | 2004-09-25 01:00:55 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2004-09-25 01:00:55 +0000 |
| commit | a63d79f93e746f611f37a7e3c9c1c13aaa7c6db3 (patch) | |
| tree | c38a038fd78fc6e6246d64aec1cbf5b20f76c77b /src/lib | |
| parent | 429c571fa4fe828192cc5f5349218616a50efa70 (diff) | |
| download | krb5-a63d79f93e746f611f37a7e3c9c1c13aaa7c6db3.tar.gz krb5-a63d79f93e746f611f37a7e3c9c1c13aaa7c6db3.tar.xz krb5-a63d79f93e746f611f37a7e3c9c1c13aaa7c6db3.zip | |
Make patchlevel.h be the master version file
ticket: 1345
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16790 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/Makefile.in | 2 | ||||
| -rw-r--r-- | src/lib/krb5/krb/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lib/krb5/krb/Makefile.in | 2 | ||||
| -rw-r--r-- | src/lib/krb5/krb/brand.c | 71 |
5 files changed, 76 insertions, 9 deletions
diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog index 1528b30b4..d8ddd1970 100644 --- a/src/lib/ChangeLog +++ b/src/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-09-24 Tom Yu <tlyu@mit.edu> + + * Makefile.in (RCFLAGS): Add -I$(SRCTOP) to get patchlevel.h. + 2004-06-18 Ken Raeburn <raeburn@mit.edu> * Makefile.in (SLIBS, SDEF, S_GLUE, COMERR_GLUE, PROF_GLUE, diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index c52ddb925..909fadcb6 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -66,7 +66,7 @@ KGLUE=$(K5_GLUE) GGLUE=$(GSS_GLUE) K4GLUE=$(K4_GLUE) -RCFLAGS=$(CPPFLAGS) -D_WIN32 -DRES_ONLY +RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY ##WIN32##SRES=$(SLIB:.lib=.res) ##WIN32##CRES=$(CLIB:.lib=.res) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index c16ad787a..46e3f5c0e 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +2004-09-24 Tom Yu <tlyu@mit.edu> + + * Makefile.in (LOCALINCLUDES): Include SRCTOP to get patchlevel.h. + + * brand.c: Use patchlevel.h as master version stamp file. + 2004-09-21 Tom Yu <tlyu@mit.edu> * rd_cred.c (decrypt_credencdata): Clear and free ppart to avoid diff --git a/src/lib/krb5/krb/Makefile.in b/src/lib/krb5/krb/Makefile.in index 9c37865bf..3430d6da7 100644 --- a/src/lib/krb5/krb/Makefile.in +++ b/src/lib/krb5/krb/Makefile.in @@ -5,7 +5,7 @@ BUILDTOP=$(REL)..$(S)..$(S).. RUN_SETUP = @KRB5_RUN_ENV@ PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) -LOCALINCLUDES = -I$(srcdir)/../os +LOCALINCLUDES = -I$(srcdir)/../os -I$(SRCTOP) ##DOS##BUILDTOP = ..\..\.. diff --git a/src/lib/krb5/krb/brand.c b/src/lib/krb5/krb/brand.c index de48d5880..7e4e0dbd0 100644 --- a/src/lib/krb5/krb/brand.c +++ b/src/lib/krb5/krb/brand.c @@ -1,15 +1,72 @@ /* + * lib/krb5/krb/brand.c + * + * Copyright (C) 2004 by the Massachusetts Institute of Technology. + * All rights reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + */ + +/* * This file is used to put a "release brand" on a Krb5 library before * it is released via some release engineering process. This gives us * an easy way to tell where a binary came from. * - * It currently is manually maintained, because there's no good way to - * automatically have CVS do the right thing. We could put RCS tags - * in every single file, but that (a) takes up lots of space, since we - * have lots of files in the Kerberos library, and (b) it makes CVS - * merges a real pain. + * It depends on patchlevel.h for the master version stamp info. */ -/* Format: "KRB5_BRAND: <cvs tag> <date>" */ +/* Format: "KRB5_BRAND: <cvs_tag> <release_name> <date>" */ + +#include "patchlevel.h" + +#define XSTR(x) #x +#define STR(x) XSTR(x) + +#ifdef KRB5_RELTAG +#define RELTAG KRB5_RELTAG +#else +#define RELTAG "[untagged]" +#endif + +#define MAJOR_MINOR STR(KRB5_MAJOR_RELEASE) "." STR(KRB5_MINOR_RELEASE) + +#if KRB5_PATCHLEVEL != 0 +#define MAYBE_PATCH "." STR(KRB5_PATCHLEVEL) +#else +#define MAYBE_PATCH "" +#endif + +#ifdef KRB5_RELTAIL +#define RELTAIL "-" KRB5_RELTAIL +#else +#define RELTAIL "" +#endif + +#define RELNAME MAJOR_MINOR MAYBE_PATCH RELTAIL + +#ifdef KRB5_RELDATE +#define RELDATE KRB5_RELDATE +#else +#define RELDATE "[date unknown]" +#endif + +#define BRANDSTR RELTAG " " RELNAME " " RELDATE -static char krb5_brand[] = "KRB5_BRAND: Unbranded release"; +static char krb5_brand[] = "KRB5_BRAND: " BRANDSTR; |
