Changeset 11308


Ignore:
Timestamp:
Oct 13, 2010, 5:09:05 PM (11 years ago)
Author:
Longinus00
Message:

change 'v' field in dht to use major/minor version instead of svn revision

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r11284 r11308  
    390390    v[0] = 'T';
    391391    v[1] = 'R';
    392     v[2] = (SVN_REVISION_NUM >> 8) & 0xFF;
    393     v[3] = SVN_REVISION_NUM & 0xFF;
     392    v[2] = MAJOR_VERSION;
     393    v[3] = MINOR_VERSION;
    394394    rc = dht_init( dht_socket, dht6_socket, myid, (const unsigned char*)v );
    395395    if(rc < 0)
  • trunk/update-version-h.sh

    r8815 r11308  
    1818peer_id_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep peer_id_prefix  | cut -d , -f 6`
    1919
     20major_version=`echo ${user_agent_prefix} | awk -F . '{print $1}'`
     21minor_version=`echo ${user_agent_prefix} | awk -F . '{print $2 + 0}'`
     22
    2023# If this is a svn tree, and svnversion is available in PATH, use it to
    2124# grab the version.
     
    3538#define LONG_VERSION_STRING       "${user_agent_prefix} (${svn_revision})"
    3639#define VERSION_STRING_INFOPLIST  ${user_agent_prefix}
     40#define MAJOR_VERSION             ${major_version}
     41#define MINOR_VERSION             ${minor_version}
    3742EOF
    3843
Note: See TracChangeset for help on using the changeset viewer.