From a09f027727d400e8dbbcbe751ae370c2ba5c78cf Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 15 Feb 2010 23:57:13 +0000 Subject: [PATCH] Add the copyright unit test and update copyright information everywhere. --- caca/attr.c | 2 +- caca/box.c | 2 +- caca/caca.c | 2 +- caca/caca0.c | 2 +- caca/caca_conio.c | 2 +- caca/caca_conio.h | 2 +- caca/caca_debug.h | 2 +- caca/caca_internals.h | 2 +- caca/caca_prof.h | 2 +- caca/caca_stubs.h | 2 +- caca/caca_types.h.in | 2 +- caca/canvas.c | 2 +- caca/charset.c | 2 +- caca/codec/codec.h | 2 +- caca/codec/export.c | 2 +- caca/codec/import.c | 2 +- caca/codec/text.c | 2 +- caca/conic.c | 2 +- caca/dirty.c | 2 +- caca/dither.c | 2 +- caca/driver/conio.c | 2 +- caca/driver/gl.c | 2 +- caca/driver/ncurses.c | 2 +- caca/driver/null.c | 2 +- caca/driver/raw.c | 2 +- caca/driver/slang.c | 2 +- caca/driver/vga.c | 2 +- caca/driver/win32.c | 2 +- caca/driver/x11.c | 2 +- caca/event.c | 2 +- caca/figfont.c | 2 +- caca/file.c | 2 +- caca/font.c | 2 +- caca/frame.c | 2 +- caca/graphics.c | 2 +- caca/legacy.c | 2 +- caca/line.c | 2 +- caca/prof.c | 2 +- caca/string.c | 2 +- caca/time.c | 2 +- caca/transform.c | 2 +- caca/triangle.c | 2 +- cxx/caca++.cpp | 5 +++-- cxx/caca++.h | 5 +++-- cxx/cxxtest.cpp | 3 ++- examples/blit.c | 2 +- examples/canvas.c | 2 +- examples/colors.c | 2 +- examples/conio-snake.cpp | 1 + examples/conio.c | 4 ++++ examples/demo.c | 2 +- examples/demo0.c | 2 +- examples/dithering.c | 2 +- examples/driver.c | 2 +- examples/event.c | 2 +- examples/export.c | 2 +- examples/figfont.c | 2 +- examples/font.c | 2 +- examples/font2tga.c | 2 +- examples/frames.c | 2 +- examples/fullwidth.c | 2 +- examples/gamma.c | 2 +- examples/hsv.c | 2 +- examples/import.c | 2 +- examples/input.c | 2 +- examples/mouse.c | 2 +- examples/spritedit.c | 2 +- examples/swallow.c | 2 +- examples/text.c | 2 +- examples/transform.c | 2 +- examples/trifiller.c | 2 +- examples/truecolor.c | 2 +- examples/unicode.c | 2 +- kernel/kernel.c | 2 +- kernel/kernel.h | 2 +- kernel/multiboot.h | 1 + ruby/caca-canvas.c | 2 +- ruby/caca-canvas.h | 11 +++++++++++ ruby/caca-display.c | 2 +- ruby/caca-display.h | 11 +++++++++++ ruby/caca-dither.c | 2 +- ruby/caca-dither.h | 11 +++++++++++ ruby/caca-event.c | 2 +- ruby/caca-event.h | 11 +++++++++++ ruby/caca-font.c | 2 +- ruby/caca-font.h | 11 +++++++++++ ruby/caca.c | 2 +- ruby/common.h | 11 +++++++++++ src/aafire.c | 2 +- src/cacademo.c | 2 +- src/cacadraw.c | 2 +- src/cacaplay.c | 2 +- src/cacaserver.c | 2 +- src/cacaview.c | 2 +- src/common-image.c | 2 +- src/common-image.h | 2 +- src/img2txt.c | 2 +- src/texture.h | 12 ++++++++++++ test/Makefile.am | 5 +++-- test/check-copyright | 39 +++++++++++++++++++++++++++++++++++++++ tools/makefont.c | 4 ++-- tools/optipal.c | 2 +- tools/sortchars.c | 2 +- 103 files changed, 223 insertions(+), 96 deletions(-) create mode 100755 test/check-copyright diff --git a/caca/attr.c b/caca/attr.c index 3ef3d17..68141cb 100644 --- a/caca/attr.c +++ b/caca/attr.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/box.c b/caca/box.c index b5a2500..6c4238e 100644 --- a/caca/box.c +++ b/caca/box.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca.c b/caca/caca.c index e59c478..70f998f 100644 --- a/caca/caca.c +++ b/caca/caca.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca0.c b/caca/caca0.c index 4eba635..86f5d27 100644 --- a/caca/caca0.c +++ b/caca/caca0.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_conio.c b/caca/caca_conio.c index b3dc4c3..2cad914 100644 --- a/caca/caca_conio.c +++ b/caca/caca_conio.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_conio.h b/caca/caca_conio.h index d168ad6..5fcdaf2 100644 --- a/caca/caca_conio.h +++ b/caca/caca_conio.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_debug.h b/caca/caca_debug.h index c51552f..430379c 100644 --- a/caca/caca_debug.h +++ b/caca/caca_debug.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_internals.h b/caca/caca_internals.h index 004ae05..3abaf9d 100644 --- a/caca/caca_internals.h +++ b/caca/caca_internals.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_prof.h b/caca/caca_prof.h index 0454e26..b2db77b 100644 --- a/caca/caca_prof.h +++ b/caca/caca_prof.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2009 Sam Hocevar + * Copyright (c) 2009-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_stubs.h b/caca/caca_stubs.h index d6af6d9..5f47477 100644 --- a/caca/caca_stubs.h +++ b/caca/caca_stubs.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/caca_types.h.in b/caca/caca_types.h.in index d56ec0c..be0379a 100644 --- a/caca/caca_types.h.in +++ b/caca/caca_types.h.in @@ -1,7 +1,7 @@ /* * libcaca Colour ASCII-Art library * libcaca Colour ASCII-Art library - * Copyright (c) 2008 Sam Hocevar + * Copyright (c) 2008-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/canvas.c b/caca/canvas.c index e0461b9..50e2806 100644 --- a/caca/canvas.c +++ b/caca/canvas.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/charset.c b/caca/charset.c index 9ebb9a5..9af4d27 100644 --- a/caca/charset.c +++ b/caca/charset.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2007 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2007 Ben Wiley Sittler * All Rights Reserved * diff --git a/caca/codec/codec.h b/caca/codec/codec.h index 615619d..b1e1b52 100644 --- a/caca/codec/codec.h +++ b/caca/codec/codec.h @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2006 Jean-Yves Lamoureux * All Rights Reserved * diff --git a/caca/codec/export.c b/caca/codec/export.c index fa87ad7..3ae667d 100644 --- a/caca/codec/export.c +++ b/caca/codec/export.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2006 Jean-Yves Lamoureux * All Rights Reserved * diff --git a/caca/codec/import.c b/caca/codec/import.c index 17aa99e..dcaed28 100644 --- a/caca/codec/import.c +++ b/caca/codec/import.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/codec/text.c b/caca/codec/text.c index e052198..bbbbeff 100644 --- a/caca/codec/text.c +++ b/caca/codec/text.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2006 Jean-Yves Lamoureux * All Rights Reserved * diff --git a/caca/conic.c b/caca/conic.c index 59afb66..901883b 100644 --- a/caca/conic.c +++ b/caca/conic.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/dirty.c b/caca/dirty.c index 46d700c..33974f4 100644 --- a/caca/dirty.c +++ b/caca/dirty.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/dither.c b/caca/dither.c index 477f144..2af2d6d 100644 --- a/caca/dither.c +++ b/caca/dither.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/conio.c b/caca/driver/conio.c index 6b9c4be..d28439c 100644 --- a/caca/driver/conio.c +++ b/caca/driver/conio.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/gl.c b/caca/driver/gl.c index 16a48d0..ab9d10b 100644 --- a/caca/driver/gl.c +++ b/caca/driver/gl.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2006 Jean-Yves Lamoureux * 2007 Ben Wiley Sittler * All Rights Reserved diff --git a/caca/driver/ncurses.c b/caca/driver/ncurses.c index d99e372..aa80114 100644 --- a/caca/driver/ncurses.c +++ b/caca/driver/ncurses.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2007 Ben Wiley Sittler * All Rights Reserved * diff --git a/caca/driver/null.c b/caca/driver/null.c index 6a3d9e4..ade7eb5 100644 --- a/caca/driver/null.c +++ b/caca/driver/null.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/raw.c b/caca/driver/raw.c index 6b89627..2e31060 100644 --- a/caca/driver/raw.c +++ b/caca/driver/raw.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/slang.c b/caca/driver/slang.c index e158e3e..ff9136e 100644 --- a/caca/driver/slang.c +++ b/caca/driver/slang.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/vga.c b/caca/driver/vga.c index 325ca81..44954ee 100644 --- a/caca/driver/vga.c +++ b/caca/driver/vga.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/win32.c b/caca/driver/win32.c index 63fdeed..faeaaef 100644 --- a/caca/driver/win32.c +++ b/caca/driver/win32.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/driver/x11.c b/caca/driver/x11.c index 9968e91..6cb64a1 100644 --- a/caca/driver/x11.c +++ b/caca/driver/x11.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * 2007 Ben Wiley Sittler * All Rights Reserved * diff --git a/caca/event.c b/caca/event.c index 3343aa6..992dbfe 100644 --- a/caca/event.c +++ b/caca/event.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/figfont.c b/caca/figfont.c index 1992a44..e01129c 100644 --- a/caca/figfont.c +++ b/caca/figfont.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/file.c b/caca/file.c index 1cd8349..317979b 100644 --- a/caca/file.c +++ b/caca/file.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2006-2007 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/font.c b/caca/font.c index cb97afa..08c33dc 100644 --- a/caca/font.c +++ b/caca/font.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/frame.c b/caca/frame.c index 698064f..66f71c3 100644 --- a/caca/frame.c +++ b/caca/frame.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/graphics.c b/caca/graphics.c index dcbe132..4c9d004 100644 --- a/caca/graphics.c +++ b/caca/graphics.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/legacy.c b/caca/legacy.c index 17c648a..dcada85 100644 --- a/caca/legacy.c +++ b/caca/legacy.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/line.c b/caca/line.c index 361a731..8c8dfde 100644 --- a/caca/line.c +++ b/caca/line.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/prof.c b/caca/prof.c index 09edb45..7eacf25 100644 --- a/caca/prof.c +++ b/caca/prof.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2009 Sam Hocevar + * Copyright (c) 2009-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/string.c b/caca/string.c index c6708fb..02be45f 100644 --- a/caca/string.c +++ b/caca/string.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/time.c b/caca/time.c index 4ac98ae..b6fb87b 100644 --- a/caca/time.c +++ b/caca/time.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/transform.c b/caca/transform.c index 67ef230..976fb3c 100644 --- a/caca/transform.c +++ b/caca/transform.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2009 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/caca/triangle.c b/caca/triangle.c index 75ff46a..2eafc24 100644 --- a/caca/triangle.c +++ b/caca/triangle.c @@ -1,6 +1,6 @@ /* * libcaca Colour ASCII-Art library - * Copyright (c) 2002-2006 Sam Hocevar + * Copyright (c) 2002-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/cxx/caca++.cpp b/cxx/caca++.cpp index d724472..c6b6253 100644 --- a/cxx/caca++.cpp +++ b/cxx/caca++.cpp @@ -1,6 +1,7 @@ /* - * libcaca++ C++ bindings for libcaca - * Copyright (c) 2006 Jean-Yves Lamoureux + * libcaca++ C++ bindings for libcaca + * Copyright (c) 2006-2007 Jean-Yves Lamoureux + * 2009-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/cxx/caca++.h b/cxx/caca++.h index fc30883..9930a23 100644 --- a/cxx/caca++.h +++ b/cxx/caca++.h @@ -1,6 +1,7 @@ /* - * libcaca++ C++ bindings for libcaca - * Copyright (c) 2006 Jean-Yves Lamoureux + * libcaca++ C++ bindings for libcaca + * Copyright (c) 2006-2007 Jean-Yves Lamoureux + * 2009-2010 Sam Hocevar * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/cxx/cxxtest.cpp b/cxx/cxxtest.cpp index 47d5436..785707e 100644 --- a/cxx/cxxtest.cpp +++ b/cxx/cxxtest.cpp @@ -1,6 +1,7 @@ /* * cpptest libcaca++ rendering test - * Copyright (c) 2006 Jean-Yves Lamoureux + * Copyright (c) 2006-2007 Jean-Yves Lamoureux + * 2009-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/blit.c b/examples/blit.c index 37ac32b..90d1dc2 100644 --- a/examples/blit.c +++ b/examples/blit.c @@ -1,6 +1,6 @@ /* * blit libcaca blit test program - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/canvas.c b/examples/canvas.c index 8154080..c827c7f 100644 --- a/examples/canvas.c +++ b/examples/canvas.c @@ -1,6 +1,6 @@ /* * all full libcaca API test - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/colors.c b/examples/colors.c index d6f940f..a1b6e26 100644 --- a/examples/colors.c +++ b/examples/colors.c @@ -1,6 +1,6 @@ /* * colors display all possible libcaca colour pairs - * Copyright (c) 2003-2004 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/conio-snake.cpp b/examples/conio-snake.cpp index d4ada8e..db33217 100644 --- a/examples/conio-snake.cpp +++ b/examples/conio-snake.cpp @@ -1,6 +1,7 @@ /* * conio-snake snake game using the API * Copyright (c) 2003-2004 Simon Huggins + * 2009-2010 Sam Hocevar * All Rights Reserved * * Permission to use, copy, modify, and/or distribute this software for any diff --git a/examples/conio.c b/examples/conio.c index fcc9d43..4314b8d 100644 --- a/examples/conio.c +++ b/examples/conio.c @@ -15,6 +15,10 @@ *Sorry for the inconvenience */ +/*Ported to libcaca + *Copyright (c) 2009-2010 Sam Hocevar +*/ + #include "config.h" #include diff --git a/examples/demo.c b/examples/demo.c index 5bb7adc..3f88a24 100644 --- a/examples/demo.c +++ b/examples/demo.c @@ -1,6 +1,6 @@ /* * demo demo for libcaca - * Copyright (c) 2003-2009 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/demo0.c b/examples/demo0.c index 253ce46..251a934 100644 --- a/examples/demo0.c +++ b/examples/demo0.c @@ -1,6 +1,6 @@ /* * demo demo for libcaca version 0.9 - * Copyright (c) 2003-2009 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software; you can redistribute it and/or diff --git a/examples/dithering.c b/examples/dithering.c index 299023e..d032fbc 100644 --- a/examples/dithering.c +++ b/examples/dithering.c @@ -1,6 +1,6 @@ /* * dithering libcaca dithering test program - * Copyright (c) 2003 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/driver.c b/examples/driver.c index d0f3174..02f7875 100644 --- a/examples/driver.c +++ b/examples/driver.c @@ -1,6 +1,6 @@ /* * driver libcaca Unicode rendering test program - * Copyright (c) 2007 Sam Hocevar + * Copyright (c) 2007-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/event.c b/examples/event.c index 6e094fb..cf16d15 100644 --- a/examples/event.c +++ b/examples/event.c @@ -1,6 +1,6 @@ /* * event event lister for libcaca - * Copyright (c) 2004 Sam Hocevar + * Copyright (c) 2004-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/export.c b/examples/export.c index cdca805..730842c 100644 --- a/examples/export.c +++ b/examples/export.c @@ -1,6 +1,6 @@ /* * export libcaca export test program - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/figfont.c b/examples/figfont.c index 412c3bb..4302c8f 100644 --- a/examples/figfont.c +++ b/examples/figfont.c @@ -1,6 +1,6 @@ /* * figfont libcaca FIGfont test program - * Copyright (c) 2007-2009 Sam Hocevar + * Copyright (c) 2007-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/font.c b/examples/font.c index 1b18f06..a424be7 100644 --- a/examples/font.c +++ b/examples/font.c @@ -1,6 +1,6 @@ /* * font libcaca font test program - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/font2tga.c b/examples/font2tga.c index 00640f2..b04ee04 100644 --- a/examples/font2tga.c +++ b/examples/font2tga.c @@ -1,6 +1,6 @@ /* * font2tga libcaca font test program - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/frames.c b/examples/frames.c index fd64f9a..5bce052 100644 --- a/examples/frames.c +++ b/examples/frames.c @@ -1,6 +1,6 @@ /* * frames canvas frame switching features - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/fullwidth.c b/examples/fullwidth.c index 079d730..7bfa115 100644 --- a/examples/fullwidth.c +++ b/examples/fullwidth.c @@ -1,6 +1,6 @@ /* * fullwidth libcaca fullwidth Unicode characters test program - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/gamma.c b/examples/gamma.c index 0b3ca50..ad09452 100644 --- a/examples/gamma.c +++ b/examples/gamma.c @@ -1,6 +1,6 @@ /* * gamma libcaca gamma test program - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/hsv.c b/examples/hsv.c index 02b6773..3b1fa47 100644 --- a/examples/hsv.c +++ b/examples/hsv.c @@ -1,6 +1,6 @@ /* * hsv libcaca HSV rendering test program - * Copyright (c) 2003 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/import.c b/examples/import.c index 7780d20..6928087 100644 --- a/examples/import.c +++ b/examples/import.c @@ -1,6 +1,6 @@ /* * import libcaca importers test program - * Copyright (c) 2006 Jean-Yves Lamoureux + * Copyright (c) 2006-2010 Jean-Yves Lamoureux * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/input.c b/examples/input.c index 6f824f1..12b698c 100644 --- a/examples/input.c +++ b/examples/input.c @@ -1,6 +1,6 @@ /* * input libcaca text input test program - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/mouse.c b/examples/mouse.c index 9f212dd..d7200f3 100644 --- a/examples/mouse.c +++ b/examples/mouse.c @@ -1,6 +1,6 @@ /* * mouse libcaca mouse events - * Copyright (c) 2006-2009 Jean-Yves Lamoureux + * Copyright (c) 2006-2010 Jean-Yves Lamoureux * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/spritedit.c b/examples/spritedit.c index 86490fe..8c98ee2 100644 --- a/examples/spritedit.c +++ b/examples/spritedit.c @@ -1,6 +1,6 @@ /* * spritedit sprite editor for libcaca - * Copyright (c) 2003-2009 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/swallow.c b/examples/swallow.c index 79f07b4..54d54c6 100644 --- a/examples/swallow.c +++ b/examples/swallow.c @@ -1,6 +1,6 @@ /* * swallow swallow another libcaca application - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/text.c b/examples/text.c index 5b2096e..a09592f 100644 --- a/examples/text.c +++ b/examples/text.c @@ -1,6 +1,6 @@ /* * text canvas text import/export - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/transform.c b/examples/transform.c index 8733d8c..9bbe1a3 100644 --- a/examples/transform.c +++ b/examples/transform.c @@ -1,6 +1,6 @@ /* * unicode libcaca Unicode rendering test program - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/trifiller.c b/examples/trifiller.c index 8a680ee..66be18d 100644 --- a/examples/trifiller.c +++ b/examples/trifiller.c @@ -1,6 +1,6 @@ /* * trifiller texture mapping features - * Copyright (c) 2009 Jean-Yves Lamoureux + * Copyright (c) 2009-2010 Jean-Yves Lamoureux * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/truecolor.c b/examples/truecolor.c index ff797d9..1f25a86 100644 --- a/examples/truecolor.c +++ b/examples/truecolor.c @@ -1,6 +1,6 @@ /* * truecolor truecolor canvas features - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/examples/unicode.c b/examples/unicode.c index 0f1e541..9bf6ce1 100644 --- a/examples/unicode.c +++ b/examples/unicode.c @@ -1,6 +1,6 @@ /* * unicode libcaca Unicode rendering test program - * Copyright (c) 2006 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/kernel/kernel.c b/kernel/kernel.c index 92ad1b5..a231a45 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -1,7 +1,7 @@ /* * libcaca Colour ASCII-Art library * Copyright (c) 2006 Sam Hocevar - * 2009 Jean-Yves Lamoureux + * 2009-2010 Jean-Yves Lamoureux * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/kernel/kernel.h b/kernel/kernel.h index 4ce0afb..d0ef48d 100644 --- a/kernel/kernel.h +++ b/kernel/kernel.h @@ -2,7 +2,7 @@ * libcaca * libcaca Colour ASCII-Art library * Copyright (c) 2006 Sam Hocevar - * 2009 Jean-Yves Lamoureux + * 2009-2010 Jean-Yves Lamoureux * All Rights Reserved * * This library is free software. It comes without any warranty, to diff --git a/kernel/multiboot.h b/kernel/multiboot.h index e3b3347..15f3f6c 100644 --- a/kernel/multiboot.h +++ b/kernel/multiboot.h @@ -1,4 +1,5 @@ /* multiboot.h - the header for Multiboot */ +/* copied into libcaca in 2010 by sam@hocevar.net */ /* Copyright (C) 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff --git a/ruby/caca-canvas.c b/ruby/caca-canvas.c index a9d4964..18a6a5d 100644 --- a/ruby/caca-canvas.c +++ b/ruby/caca-canvas.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/caca-canvas.h b/ruby/caca-canvas.h index b0d82e9..ca7e4ad 100644 --- a/ruby/caca-canvas.h +++ b/ruby/caca-canvas.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __CACA_CANVAS_H__ #define __CACA_CANVAS_H__ diff --git a/ruby/caca-display.c b/ruby/caca-display.c index cc17743..934ae9d 100644 --- a/ruby/caca-display.c +++ b/ruby/caca-display.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/caca-display.h b/ruby/caca-display.h index a4c2634..149246d 100644 --- a/ruby/caca-display.h +++ b/ruby/caca-display.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __CACA_DISPLAY_H__ #define __CACA_DISPLAY_H__ diff --git a/ruby/caca-dither.c b/ruby/caca-dither.c index 1d52b4f..94d1213 100644 --- a/ruby/caca-dither.c +++ b/ruby/caca-dither.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/caca-dither.h b/ruby/caca-dither.h index c8be0b0..c4d0c94 100644 --- a/ruby/caca-dither.h +++ b/ruby/caca-dither.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __CACA_DITHER_H__ #define __CACA_DITHER_H__ diff --git a/ruby/caca-event.c b/ruby/caca-event.c index bb23408..53b1cd4 100644 --- a/ruby/caca-event.c +++ b/ruby/caca-event.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/caca-event.h b/ruby/caca-event.h index 9d3fbb2..afdba4b 100644 --- a/ruby/caca-event.h +++ b/ruby/caca-event.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __CACA_EVENT_H__ #define __CACA_EVENT_H__ diff --git a/ruby/caca-font.c b/ruby/caca-font.c index 65d0433..391ef3f 100644 --- a/ruby/caca-font.c +++ b/ruby/caca-font.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/caca-font.h b/ruby/caca-font.h index 566fdfc..1bfc182 100644 --- a/ruby/caca-font.h +++ b/ruby/caca-font.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __CACA_FONT_H__ #define __CACA_FONT_H__ diff --git a/ruby/caca.c b/ruby/caca.c index 595ddc4..4bd7771 100644 --- a/ruby/caca.c +++ b/ruby/caca.c @@ -1,6 +1,6 @@ /* * libcaca Ruby bindings - * Copyright (c) 2007 Pascal Terjan + * Copyright (c) 2007-2010 Pascal Terjan * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it diff --git a/ruby/common.h b/ruby/common.h index cc339df..5b47f62 100644 --- a/ruby/common.h +++ b/ruby/common.h @@ -1,3 +1,14 @@ +/* + * libcaca Ruby bindings + * Copyright (c) 2007-2010 Pascal Terjan + * + * This library is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + #ifndef __COMMON_H__ #define __COMMON_H__ diff --git a/src/aafire.c b/src/aafire.c index d99fd37..dd9178d 100644 --- a/src/aafire.c +++ b/src/aafire.c @@ -1,6 +1,6 @@ /* * cacafire fire demo for libcaca - * Copyright (c) 2003 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * 1998, 1999, 2001 Jan Hubicka * All Rights Reserved * diff --git a/src/cacademo.c b/src/cacademo.c index 42227d4..90a403d 100644 --- a/src/cacademo.c +++ b/src/cacademo.c @@ -2,7 +2,7 @@ * cacademo various demo effects for libcaca * Copyright (c) 1998 Michele Bini * 2003-2006 Jean-Yves Lamoureux - * 2004-2006 Sam Hocevar + * 2004-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/cacadraw.c b/src/cacadraw.c index e4f095c..33a0dee 100644 --- a/src/cacadraw.c +++ b/src/cacadraw.c @@ -1,6 +1,6 @@ /* * event event lister for libcaca - * Copyright (c) 2004-2009 Sam Hocevar + * Copyright (c) 2004-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/cacaplay.c b/src/cacaplay.c index d69aed1..5b1bea6 100644 --- a/src/cacaplay.c +++ b/src/cacaplay.c @@ -1,6 +1,6 @@ /* * cacaplay caca file player - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/cacaserver.c b/src/cacaserver.c index b94f569..ae65340 100644 --- a/src/cacaserver.c +++ b/src/cacaserver.c @@ -1,7 +1,7 @@ /* * cacaserver Colour ASCII-Art library * Copyright (c) 2006 Jean-Yves Lamoureux - * 2006-2009 Sam Hocevar + * 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/cacaview.c b/src/cacaview.c index d4b9832..a2e6105 100644 --- a/src/cacaview.c +++ b/src/cacaview.c @@ -1,6 +1,6 @@ /* * cacaview image viewer for libcaca - * Copyright (c) 2003-2006 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/common-image.c b/src/common-image.c index 80b7fb3..aa2e5d9 100644 --- a/src/common-image.c +++ b/src/common-image.c @@ -1,6 +1,6 @@ /* * Imaging tools for cacaview and img2irc - * Copyright (c) 2003-2006 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/common-image.h b/src/common-image.h index efc6069..52944af 100644 --- a/src/common-image.h +++ b/src/common-image.h @@ -1,6 +1,6 @@ /* * Imaging tools for cacaview and img2irc - * Copyright (c) 2003-2006 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/src/img2txt.c b/src/img2txt.c index 29fc3c0..ccb3390 100644 --- a/src/img2txt.c +++ b/src/img2txt.c @@ -1,6 +1,6 @@ /* * img2txt image to text converter - * Copyright (c) 2006-2009 Sam Hocevar + * Copyright (c) 2006-2010 Sam Hocevar * 2007 Jean-Yves Lamoureux * All Rights Reserved * diff --git a/src/texture.h b/src/texture.h index 77a154e..283286f 100644 --- a/src/texture.h +++ b/src/texture.h @@ -1,3 +1,15 @@ +/* + * cacademo various demo effects for libcaca + * Copyright (c) 2009-2010 carmie@zoy.org + * All Rights Reserved + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + static uint32_t const texture256x256[] = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, diff --git a/test/Makefile.am b/test/Makefile.am index 4569cb9..ae79f35 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -8,11 +8,12 @@ if BUILD_DOCUMENTATION doxygen_tests = check-doxygen endif -EXTRA_DIST = check-doxygen check-source check-win32 +EXTRA_DIST = check-copyright check-doxygen check-source check-win32 noinst_PROGRAMS = simple bench $(cppunit_tests) -TESTS = simple check-source check-win32 $(doxygen_tests) $(cppunit_tests) +TESTS = simple check-copyright check-source check-win32 \ + $(doxygen_tests) $(cppunit_tests) simple_SOURCES = simple.c simple_LDADD = ../caca/libcaca.la diff --git a/test/check-copyright b/test/check-copyright new file mode 100755 index 0000000..9c4b58c --- /dev/null +++ b/test/check-copyright @@ -0,0 +1,39 @@ +#!/bin/sh + +# +# Check that the copyright information is valid +# +nfails=0 +nfiles=0 +for dir in $(make -s echo-dirs -C ..); do + if [ ! -d "../$dir" ]; then continue; fi + for x in $(make -s echo-sources -C ../$dir); do + case "$x" in + *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl) + nfiles=$(($nfiles + 1)) ;; + *) + continue ;; + esac + if ! grep 'Copyright *([cC])' "../$dir/$x" >/dev/null 2>&1; then + echo "error: $dir/$x lacks proper copyright information" + nfails=$(($nfails + 1)) + elif [ -d ../.git ]; then + Y="$(git log "../$dir/$x" | head -n 3 | sed -ne 's/^Date.* \([0-9][0-9][0-9][0-9]\) .*/\1/p')" + if [ "$Y" != "" ]; then + if ! grep "$Y.*@" "../$dir/$x" >/dev/null 2>&1; then + echo "error: $dir/$x last modified in $Y, which is not in copyright" + nfails=$(($nfails + 1)) + fi + fi + fi + done +done + +echo "$nfiles files, $nfails errors in copyright information" + +if test "$nfails" != "0"; then + exit 1 +fi + +exit 0 + diff --git a/tools/makefont.c b/tools/makefont.c index ba904b8..db7b57a 100644 --- a/tools/makefont.c +++ b/tools/makefont.c @@ -1,6 +1,6 @@ /* - * makefont create libcaca font data - * Copyright (c) 2006 Sam Hocevar + * makefont create libcaca font data + * Copyright (c) 2006-2010 Sam Hocevar * All Rights Reserved * * This program is free software. It comes without any warranty, to diff --git a/tools/optipal.c b/tools/optipal.c index 4a629f3..c42ccfb 100644 --- a/tools/optipal.c +++ b/tools/optipal.c @@ -1,6 +1,6 @@ /* * optipal S-Lang optimised palette generator for libcaca - * Copyright (c) 2003 Sam Hocevar + * Copyright (c) 2003-2010 Sam Hocevar * All Rights Reserved * * diff --git a/tools/sortchars.c b/tools/sortchars.c index fcc02c6..b1648cf 100644 --- a/tools/sortchars.c +++ b/tools/sortchars.c @@ -1,6 +1,6 @@ /* * sortchars analyse ASCII characters - * Copyright (c) 2007 Sam Hocevar + * Copyright (c) 2007-2010 Sam Hocevar * All Rights Reserved * *