mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
make short and long version strings the next release instead of the current release (peer id is still the current release with a beta flag)
This commit is contained in:
parent
79b85b36ab
commit
02447d12b5
3 changed files with 5 additions and 3 deletions
|
@ -40,6 +40,8 @@ AboutWindowController * fAboutBoxInstance = nil;
|
||||||
[fVersionField setStringValue: [NSString stringWithFormat: @"%@ (%@)",
|
[fVersionField setStringValue: [NSString stringWithFormat: @"%@ (%@)",
|
||||||
[info objectForKey: @"CFBundleShortVersionString"], [info objectForKey: (NSString *)kCFBundleVersionKey]]];
|
[info objectForKey: @"CFBundleShortVersionString"], [info objectForKey: (NSString *)kCFBundleVersionKey]]];
|
||||||
|
|
||||||
|
#warning get copyright info from file
|
||||||
|
|
||||||
[[fTextView textStorage] setAttributedString: [[[NSAttributedString alloc] initWithPath:
|
[[fTextView textStorage] setAttributedString: [[[NSAttributedString alloc] initWithPath:
|
||||||
[[NSBundle mainBundle] pathForResource: @"Credits" ofType: @"rtf"] documentAttributes: nil] autorelease]];
|
[[NSBundle mainBundle] pathForResource: @"Credits" ofType: @"rtf"] documentAttributes: nil] autorelease]];
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,7 @@ msg_default ( enum ipc_msg msgid, benc_val_t * val, int64_t tag, void * arg );
|
||||||
_controller = controller;
|
_controller = controller;
|
||||||
_buf = [[NSMutableData alloc] init];
|
_buf = [[NSMutableData alloc] init];
|
||||||
|
|
||||||
buf = ipc_mkvers( &size, "Transmission MacOS X " LONG_VERSION_STRING );
|
buf = ipc_mkvers( &size, "Transmission Mac OS X " LONG_VERSION_STRING );
|
||||||
if( NULL == _ipc || nil == _buf || NULL == buf ||
|
if( NULL == _ipc || nil == _buf || NULL == buf ||
|
||||||
![self sendresp: buf size: size] )
|
![self sendresp: buf size: size] )
|
||||||
{
|
{
|
||||||
|
|
|
@ -48,8 +48,8 @@ cat > libtransmission/version.h.new << EOF
|
||||||
#define VERSION_MAINTENANCE "$MAINT"
|
#define VERSION_MAINTENANCE "$MAINT"
|
||||||
#define VERSION_REVISION "$REV"
|
#define VERSION_REVISION "$REV"
|
||||||
#define VERSION_BETA "$BETA"
|
#define VERSION_BETA "$BETA"
|
||||||
#define SHORT_VERSION_STRING "$MAJOR.$MINOR$MAINT$BETA"
|
#define SHORT_VERSION_STRING "$STRING"
|
||||||
#define LONG_VERSION_STRING "$MAJOR.$MINOR$MAINT$BETA (r$REV)"
|
#define LONG_VERSION_STRING "$STRING ($REV)"
|
||||||
EOF
|
EOF
|
||||||
replace_if_differs libtransmission/version.h.new libtransmission/version.h
|
replace_if_differs libtransmission/version.h.new libtransmission/version.h
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue