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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.