# HG changeset patch # User Sebastien Decugis # Date 1243923089 -32400 # Node ID 436958de227e8adbb115314884165440ccbd2f5d # Parent 860f41038ea24ace088cc430ade3cac9370cff00 Fixed issue with copy in repository diff -r 860f41038ea2 -r 436958de227e update_copyright.sh --- 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) }'`