Changeset 2b101ad in tol


Ignore:
Timestamp:
Aug 31, 2010, 11:07:35 AM (16 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d42d46f
Parents:
0cc6133
Message:

define TOL_BUILD_SVN_INFO at command line

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2503 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/Jamroot

    r0cc6133 r2b101ad  
    44import config ;
    55import modules ;
     6import string ;
    67import os ;
    78import option ;
    … …  
    3637  build-date = [ trim-nl [ SHELL "date +%F" ] ] ;
    3738  build-time = [ trim-nl [ SHELL "date '+%T %z %Z'" ] ] ;
    38 }
     39  svn-info = [ SHELL "svn info" ] ;
     40  svn0 = [ string.words $(svn-info) : "
     41" ] ;
     42  build-svn-info = [ string.join $(svn0) : "\\n" ] ;
     43}
     44
     45#build-svn-info = "Path: .\\nURL: https://www.tol-project.org/svn/tolp/trunk/tol\\nRepository Root: https://www.tol-project.org/svn\\nRepository UUID: be4846ae-f051-483a-831f-b64e7d08527f\\nRevision: 2498\n\nNode Kind: directory\n\nSchedule: replace\n\nLast Changed Author: vdebuen\n\nLast Changed Rev: 2498\\nLast Changed Date: 2010-08-29 14:46:28 +0200 (dg, 29 ago 2010)" ;
    3946
    4047# por que no usar algo como?
    … …  
    214221           <define>__TOL_BUILD_DATE__=\"\\\"$(build-date)\\\"\"
    215222           <define>__TOL_BUILD_TIME__=\"\\\"$(build-time)\\\"\"
     223           <define>__TOL_BUILD_SVN_INFO__=\"\\\"$(build-svn-info)\\\"\"
    216224           <conditional>@obj-req
    217225         ;
Note: See TracChangeset for help on using the changeset viewer.