scripts/unify-sources.sh
changeset 675 586b65073025
parent 601 6b9c1f6eb1e5
parent 538 a76f55d7d397
child 702 c706534d4740
equal deleted inserted replaced
9:d2a57ef2fd25 10:f30822fd30e0
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 YEAR=`date +2003-%Y`
     3 YEAR=`date +%Y`
     4 HGROOT=`hg root`
     4 HGROOT=`hg root`
       
     5 
       
     6 function hg_year() {
       
     7     if [ -n "$(hg st $1)" ]; then
       
     8         echo $YEAR
       
     9 }
     5 
    10 
     6 # file enumaration modes
    11 # file enumaration modes
     7 
    12 
     8 function all_files() {
    13 function all_files() {
     9     hg status -a -m -c |
    14     hg status -a -m -c |
   189 
   194 
   190     (echo "/* -*- mode: C++; indent-tabs-mode: nil; -*-
   195     (echo "/* -*- mode: C++; indent-tabs-mode: nil; -*-
   191  *
   196  *
   192  * This file is a part of LEMON, a generic C++ optimization library.
   197  * This file is a part of LEMON, a generic C++ optimization library.
   193  *
   198  *
   194  * Copyright (C) "$YEAR"
   199  * Copyright (C) 2003-"$(hg_year $1)"
   195  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
   200  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
   196  * (Egervary Research Group on Combinatorial Optimization, EGRES).
   201  * (Egervary Research Group on Combinatorial Optimization, EGRES).
   197  *
   202  *
   198  * Permission to use, modify and distribute this software is granted
   203  * Permission to use, modify and distribute this software is granted
   199  * provided that this copyright notice appears in all copies. For
   204  * provided that this copyright notice appears in all copies. For