COIN-OR::LEMON - Graph Library

Ticket #144: 5d12d5c80ac9.patch

File 5d12d5c80ac9.patch, 1.1 KB (added by Alpar Juttner, 12 years ago)
  • configure.ac

    # HG changeset patch
    # User Alpar Juttner <alpar@cs.elte.hu>
    # Date 1221983288 -3600
    # Node ID 5d12d5c80ac9d3204a4768fd1e02c053ce413e3d
    # Parent  e63a95b6882734037c4e102bf6d5008f150edac3
    Better versioning (#144)
    
    diff --git a/configure.ac b/configure.ac
    a b  
    11dnl Process this file with autoconf to produce a configure script.
    22
    33dnl Version information.
    4 m4_define([lemon_version_number], [])
     4m4_define([lemon_version_number],
     5        [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     6dnl m4_define([lemon_version_number], [])
     7m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
    58m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
    6 m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
     9m4_define([lemon_version], [ifelse(lemon_version_number(),
     10                           [],
     11                           [lemon_hg_path().lemon_hg_revision()],
     12                           [lemon_version_number()])])
    713
    814AC_PREREQ([2.59])
    915AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])