Changeset 5039

Show
Ignore:
Timestamp:
11/01/07 20:13:07 (9 months ago)
Author:
morris
Message:

Add revision number

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/config.h.in

    r4054 r5039  
    7272#undef STDC_HEADERS 
    7373 
     74/* Subversion revision */ 
     75#undef WI_REVISION 
     76 
    7477/* Maintainer's email address */ 
    7578#undef WR_BUGREPORT 
  • wire/trunk/configure

    r5034 r5039  
    19221922 
    19231923 
     1924# Get Subversion revision 
     1925 
     1926        WI_REVISION=$(svn info 2>&1 | grep "^Revision" | sed -e 's/^Revision: //') 
     1927 
     1928        if test -z "$WI_REVISION"; then 
     1929                WI_REVISION=0 
     1930        fi 
     1931 
     1932 
     1933cat >>confdefs.h <<_ACEOF 
     1934#define WI_REVISION $WI_REVISION 
     1935_ACEOF 
     1936 
     1937 
     1938 
    19241939# These are used in the source code 
    19251940 
  • wire/trunk/configure.in

    r4522 r5039  
    1010# Get host 
    1111AC_CANONICAL_HOST 
     12 
     13# Get Subversion revision 
     14WI_CHECK_SVN_REVISION 
    1215 
    1316# These are used in the source code 
  • wire/trunk/wire/version.c

    r4399 r5039  
    4141 
    4242void wr_version_init(void) { 
    43         wr_version_string                       = wi_string_init_with_cstring(wi_string_alloc(), WR_VERSION); 
     43        wr_version_string                       = wi_string_init_with_format(wi_string_alloc(), WI_STR("%s (%u)"), WR_VERSION, WI_REVISION); 
    4444        wr_protocol_version_string      = wi_string_init_with_cstring(wi_string_alloc(), WR_PROTOCOL_VERSION); 
    4545        wr_client_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wire/%@ (%@; %@; %@) (%s; readline %s)"),