COIN-OR::LEMON - Graph Library

Changeset 680:257e91516e09 in lemon-main


Ignore:
Timestamp:
05/29/09 18:46:48 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Children:
681:532697c9fa53, 684:7b1a6e963018, 688:1f08e846df29, 716:f47b6c94577e, 727:cab85bd7859b
Phase:
public
Message:

Set the version to 'hg-tip' if everything fails

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r679 r680  
    1616    OUTPUT_STRIP_TRAILING_WHITESPACE
    1717  )
     18  IF(HG_REVISION STREQUAL "")
     19    SET(HG_REVISION "hg-tip")
     20  ENDIF()
    1821  SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
    1922ENDIF()
  • configure.ac

    r678 r680  
    33dnl Version information.
    44m4_define([lemon_version_number],
    5         [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     5          [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
    66dnl m4_define([lemon_version_number], [])
    77m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
    8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
     8m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
    99m4_define([lemon_version], [ifelse(lemon_version_number(),
    10                            [],
    11                            [lemon_hg_path().lemon_hg_revision()],
    12                            [lemon_version_number()])])
     10                           [],
     11                           [ifelse(lemon_hg_revision(),
     12                           [],
     13                           [hg-tip],
     14                           [lemon_hg_path().lemon_hg_revision()])],
     15                           [lemon_version_number()])])
    1316
    1417AC_PREREQ([2.59])
Note: See TracChangeset for help on using the changeset viewer.