scripts/unify-sources.sh
branch1.1
changeset 720 86a880ba752d
parent 623 586b65073025
equal deleted inserted replaced
10:f30822fd30e0 11:1a19c734c2be
     4 HGROOT=`hg root`
     4 HGROOT=`hg root`
     5 
     5 
     6 function hg_year() {
     6 function hg_year() {
     7     if [ -n "$(hg st $1)" ]; then
     7     if [ -n "$(hg st $1)" ]; then
     8         echo $YEAR
     8         echo $YEAR
       
     9     else
       
    10         hg log -l 1 --template='{date|isodate}\n' $1 |
       
    11         cut -d '-' -f 1
       
    12     fi
     9 }
    13 }
    10 
    14 
    11 # file enumaration modes
    15 # file enumaration modes
    12 
    16 
    13 function all_files() {
    17 function all_files() {