# HG changeset patch # User Alpar Juttner # Date 1240923660 -3600 # Node ID 586b65073025e0d8c88121bd976b69d1b618fb01 # Parent 20dac21045199a4138fcc80da6bbf26590899965# Parent a76f55d7d39765d686149fec07c3bf60f595f403 Merge diff -r 20dac2104519 -r 586b65073025 scripts/unify-sources.sh --- a/scripts/unify-sources.sh Tue Apr 28 13:51:34 2009 +0100 +++ b/scripts/unify-sources.sh Tue Apr 28 14:01:00 2009 +0100 @@ -1,8 +1,13 @@ #!/bin/bash -YEAR=`date +2003-%Y` +YEAR=`date +%Y` HGROOT=`hg root` +function hg_year() { + if [ -n "$(hg st $1)" ]; then + echo $YEAR +} + # file enumaration modes function all_files() { @@ -191,7 +196,7 @@ * * This file is a part of LEMON, a generic C++ optimization library. * - * Copyright (C) "$YEAR" + * Copyright (C) 2003-"$(hg_year $1)" * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). *