diff options
author | Joel E. Denny <jdenny@clemson.edu> | 2009-08-05 20:51:27 -0400 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-06 07:32:25 +0200 |
commit | 48ecb786a96e5e9a547b3f294a29c65a41b9f049 (patch) | |
tree | a54ff0eb24d1e124a978b2506a43335e9bae1a7d /tests/test-update-copyright.sh | |
parent | 9faeba562c0527b5cf1fca4f79ba657553c2a31b (diff) | |
download | gnulib-48ecb786a96e5e9a547b3f294a29c65a41b9f049.tar.gz |
update-copyright: support omitted "(C)"
* build-aux/update-copyright: Implement and document. Also,
allow variable whitespace before "(C)".
* tests/test-update-copyright.sh: Test.
Diffstat (limited to 'tests/test-update-copyright.sh')
-rwxr-xr-x | tests/test-update-copyright.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test-update-copyright.sh b/tests/test-update-copyright.sh index 0f5de4b302..69dadbf7a8 100755 --- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -334,4 +334,25 @@ EOF compare $TMP-exp $TMP || exit 1 rm $TMP* +## --------------- ## +## Omitted "(C)". ## +## --------------- ## + +TMP=$TMP_BASE-omitted-circle-c +cat > $TMP <<EOF + Copyright 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997, + 98, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, + 2009 Free Software Foundation, Inc. +EOF +UPDATE_COPYRIGHT_YEAR=2010 \ + update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr +compare /dev/null $TMP-stdout || exit 1 +compare /dev/null $TMP-stderr || exit 1 +compare - $TMP <<EOF || exit 1 + Copyright 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 98, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009-2010 Free + Software Foundation, Inc. +EOF +rm $TMP* + exit 0 |