COIN-OR::LEMON - Graph Library

Changeset 538:a76f55d7d397 in lemon for scripts


Ignore:
Timestamp:
04/27/09 12:24:44 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
542:7f4536948929, 675:586b65073025
Phase:
public
Message:

unify-sources.sh refresh the dates according to the last modification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/unify-sources.sh

    r208 r538  
    11#!/bin/bash
    22
    3 YEAR=`date +2003-%Y`
     3YEAR=`date +%Y`
    44HGROOT=`hg root`
     5
     6function hg_year() {
     7    if [ -n "$(hg st $1)" ]; then
     8        echo $YEAR
     9    else
     10        hg log -l 1 --template='{date|isodate}\n' $1 |
     11        cut -d '-' -f 1
     12    fi
     13}
    514
    615function update_header() {
     
    1221 * This file is a part of LEMON, a generic C++ optimization library.
    1322 *
    14  * Copyright (C) "$YEAR"
     23 * Copyright (C) 2003-"$(hg_year $1)"
    1524 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1625 * (Egervary Research Group on Combinatorial Optimization, EGRES).
Note: See TracChangeset for help on using the changeset viewer.