... | ... |
@@ -2,5 +2,14 @@ |
2 | 2 |
|
3 |
YEAR=`date + |
|
3 |
YEAR=`date +%Y` |
|
4 | 4 |
HGROOT=`hg root` |
5 | 5 |
|
6 |
function 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 |
} |
|
14 |
|
|
6 | 15 |
function update_header() { |
... | ... |
@@ -13,3 +22,3 @@ |
13 | 22 |
* |
14 |
* Copyright (C) "$ |
|
23 |
* Copyright (C) 2003-"$(hg_year $1)" |
|
15 | 24 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
0 comments (0 inline)