Mercurial > hg > waaad
changeset 402:436958de227e
Fixed issue with copy in repository
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 02 Jun 2009 15:11:29 +0900 |
parents | 860f41038ea2 |
children | bcc13af0825a |
files | update_copyright.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/update_copyright.sh Tue Jun 02 15:10:55 2009 +0900 +++ b/update_copyright.sh Tue Jun 02 15:11:29 2009 +0900 @@ -14,7 +14,7 @@ pushd $TMPDIR/waaad # Now, for each file -for SRC_FILE in `find . -type f -exec grep -q 'Copyright (c) 20.., WIDE Project and NICT' {} \; -print`; +for SRC_FILE in `find . -name .hg -prune -or -type f -exec grep -q 'Copyright (c) 20.., WIDE Project and NICT' {} \; -print`; do HG_YEAR=`hg log --template '{date|shortdate}' $SRC_FILE | tr - ' ' | awk '{print \$1}'` CPY_YEAR=`grep 'Copyright (c) 20.., WIDE Project and NICT' $SRC_FILE | awk '{print substr(\$4, 1, 4) }'`