| 1 | 1 |
#!/bin/bash |
| 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 |
} |
|
| 10 |
|
|
| 6 | 11 |
# file enumaration modes |
| 7 | 12 |
|
| 8 | 13 |
function all_files() {
|
| 9 | 14 |
hg status -a -m -c | |
| ... | ... |
@@ -190,9 +195,9 @@ |
| 190 | 195 |
(echo "/* -*- mode: C++; indent-tabs-mode: nil; -*- |
| 191 | 196 |
* |
| 192 | 197 |
* This file is a part of LEMON, a generic C++ optimization library. |
| 193 | 198 |
* |
| 194 |
* Copyright (C) "$ |
|
| 199 |
* Copyright (C) 2003-"$(hg_year $1)" |
|
| 195 | 200 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
| 196 | 201 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
| 197 | 202 |
* |
| 198 | 203 |
* Permission to use, modify and distribute this software is granted |
0 comments (0 inline)