Changeset 7725


Ignore:
Timestamp:
Jan 16, 2009, 9:29:48 PM (12 years ago)
Author:
charles
Message:

(1.5x) sync xcode & autoconf idioms for determining if a build is stable, beta, or nightly

Location:
branches/1.5x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/configure.ac

    r7722 r7725  
    2020AC_PROG_LIBTOOL
    2121
    22 if test m4_substr(peer_id_prefix,6,1) = "Z"; then
    23   AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission])
    24   TR_UNSTABLE=yes
    25   enable_debug=yes
     22if test m4_substr(peer_id_prefix,6,1) = "X"; then
     23  AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
     24  supported_build=no
     25elif test m4_substr(peer_id_prefix,6,1) = "Z"; then
     26  AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
     27  supported_build=no
    2628else
    27   enable_debug=no
    28 fi
    29 AM_CONDITIONAL(TR_UNSTABLE, test "x$TR_UNSTABLE" = "xyes")
     29  AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
     30  supported_build=yes
     31fi
     32AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno")
    3033
    3134OPENSSL_MINIMUM=0.9.4
  • branches/1.5x/macosx/version.sh

    r7666 r7725  
    4949#define BUNDLE_VERSION_INFOPLIST  $SVN_REVISION
    5050EOF
     51
     52# add a release definition
     53if [ ${PEERID_PREFIX:6:1} = X ]; then
     54    line='#define TR_BETA_RELEASE     "BETA"'
     55elif [ ${PEERID_PREFIX:6:1} = Z ]; then
     56    line='#define TR_NIGHTLY_RELEASE  "NIGHTLY"'
     57else
     58    line='#define TR_STABLE_RELEASE   "STABLE"'
     59fi 
     60echo $line >> libtransmission/version.h.new
     61
    5162replace_if_differs libtransmission/version.h.new libtransmission/version.h
    5263
Note: See TracChangeset for help on using the changeset viewer.