[Lemon-commits] Alpar Juttner: Merge
Lemon HG
hg at lemon.cs.elte.hu
Tue Apr 28 15:04:25 CEST 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/586b65073025
changeset: 665:586b65073025
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Tue Apr 28 14:01:00 2009 +0100
description:
Merge
diffstat:
scripts/unify-sources.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (27 lines):
diff --git a/scripts/unify-sources.sh b/scripts/unify-sources.sh
--- a/scripts/unify-sources.sh
+++ b/scripts/unify-sources.sh
@@ -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).
*
More information about the Lemon-commits
mailing list