Bläddra i källkod

Add the copyright unit test and update copyright information everywhere.

tags/v0.99.beta18
Sam Hocevar sam 15 år sedan
förälder
incheckning
a09f027727
100 ändrade filer med 219 tillägg och 92 borttagningar
  1. +1
    -1
      caca/attr.c
  2. +1
    -1
      caca/box.c
  3. +1
    -1
      caca/caca.c
  4. +1
    -1
      caca/caca0.c
  5. +1
    -1
      caca/caca_conio.c
  6. +1
    -1
      caca/caca_conio.h
  7. +1
    -1
      caca/caca_debug.h
  8. +1
    -1
      caca/caca_internals.h
  9. +1
    -1
      caca/caca_prof.h
  10. +1
    -1
      caca/caca_stubs.h
  11. +1
    -1
      caca/caca_types.h.in
  12. +1
    -1
      caca/canvas.c
  13. +1
    -1
      caca/charset.c
  14. +1
    -1
      caca/codec/codec.h
  15. +1
    -1
      caca/codec/export.c
  16. +1
    -1
      caca/codec/import.c
  17. +1
    -1
      caca/codec/text.c
  18. +1
    -1
      caca/conic.c
  19. +1
    -1
      caca/dirty.c
  20. +1
    -1
      caca/dither.c
  21. +1
    -1
      caca/driver/conio.c
  22. +1
    -1
      caca/driver/gl.c
  23. +1
    -1
      caca/driver/ncurses.c
  24. +1
    -1
      caca/driver/null.c
  25. +1
    -1
      caca/driver/raw.c
  26. +1
    -1
      caca/driver/slang.c
  27. +1
    -1
      caca/driver/vga.c
  28. +1
    -1
      caca/driver/win32.c
  29. +1
    -1
      caca/driver/x11.c
  30. +1
    -1
      caca/event.c
  31. +1
    -1
      caca/figfont.c
  32. +1
    -1
      caca/file.c
  33. +1
    -1
      caca/font.c
  34. +1
    -1
      caca/frame.c
  35. +1
    -1
      caca/graphics.c
  36. +1
    -1
      caca/legacy.c
  37. +1
    -1
      caca/line.c
  38. +1
    -1
      caca/prof.c
  39. +1
    -1
      caca/string.c
  40. +1
    -1
      caca/time.c
  41. +1
    -1
      caca/transform.c
  42. +1
    -1
      caca/triangle.c
  43. +3
    -2
      cxx/caca++.cpp
  44. +3
    -2
      cxx/caca++.h
  45. +2
    -1
      cxx/cxxtest.cpp
  46. +1
    -1
      examples/blit.c
  47. +1
    -1
      examples/canvas.c
  48. +1
    -1
      examples/colors.c
  49. +1
    -0
      examples/conio-snake.cpp
  50. +4
    -0
      examples/conio.c
  51. +1
    -1
      examples/demo.c
  52. +1
    -1
      examples/demo0.c
  53. +1
    -1
      examples/dithering.c
  54. +1
    -1
      examples/driver.c
  55. +1
    -1
      examples/event.c
  56. +1
    -1
      examples/export.c
  57. +1
    -1
      examples/figfont.c
  58. +1
    -1
      examples/font.c
  59. +1
    -1
      examples/font2tga.c
  60. +1
    -1
      examples/frames.c
  61. +1
    -1
      examples/fullwidth.c
  62. +1
    -1
      examples/gamma.c
  63. +1
    -1
      examples/hsv.c
  64. +1
    -1
      examples/import.c
  65. +1
    -1
      examples/input.c
  66. +1
    -1
      examples/mouse.c
  67. +1
    -1
      examples/spritedit.c
  68. +1
    -1
      examples/swallow.c
  69. +1
    -1
      examples/text.c
  70. +1
    -1
      examples/transform.c
  71. +1
    -1
      examples/trifiller.c
  72. +1
    -1
      examples/truecolor.c
  73. +1
    -1
      examples/unicode.c
  74. +1
    -1
      kernel/kernel.c
  75. +1
    -1
      kernel/kernel.h
  76. +1
    -0
      kernel/multiboot.h
  77. +1
    -1
      ruby/caca-canvas.c
  78. +11
    -0
      ruby/caca-canvas.h
  79. +1
    -1
      ruby/caca-display.c
  80. +11
    -0
      ruby/caca-display.h
  81. +1
    -1
      ruby/caca-dither.c
  82. +11
    -0
      ruby/caca-dither.h
  83. +1
    -1
      ruby/caca-event.c
  84. +11
    -0
      ruby/caca-event.h
  85. +1
    -1
      ruby/caca-font.c
  86. +11
    -0
      ruby/caca-font.h
  87. +1
    -1
      ruby/caca.c
  88. +11
    -0
      ruby/common.h
  89. +1
    -1
      src/aafire.c
  90. +1
    -1
      src/cacademo.c
  91. +1
    -1
      src/cacadraw.c
  92. +1
    -1
      src/cacaplay.c
  93. +1
    -1
      src/cacaserver.c
  94. +1
    -1
      src/cacaview.c
  95. +1
    -1
      src/common-image.c
  96. +1
    -1
      src/common-image.h
  97. +1
    -1
      src/img2txt.c
  98. +12
    -0
      src/texture.h
  99. +3
    -2
      test/Makefile.am
  100. +39
    -0
      test/check-copyright

+ 1
- 1
caca/attr.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/box.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca0.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_conio.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_conio.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_debug.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_internals.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_prof.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_stubs.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/caca_types.h.in Visa fil

@@ -1,7 +1,7 @@
/*
* libcaca Colour ASCII-Art library
* libcaca Colour ASCII-Art library
* Copyright (c) 2008 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2008-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/canvas.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/charset.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2007 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2007 Ben Wiley Sittler <bsittler@gmail.com>
* All Rights Reserved
*


+ 1
- 1
caca/codec/codec.h Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*


+ 1
- 1
caca/codec/export.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*


+ 1
- 1
caca/codec/import.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/codec/text.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*


+ 1
- 1
caca/conic.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/dirty.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/dither.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/conio.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/gl.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2007 Ben Wiley Sittler <bsittler@gmail.com>
* All Rights Reserved


+ 1
- 1
caca/driver/ncurses.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2007 Ben Wiley Sittler <bsittler@gmail.com>
* All Rights Reserved
*


+ 1
- 1
caca/driver/null.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/raw.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/slang.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/vga.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/win32.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/driver/x11.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* 2007 Ben Wiley Sittler <bsittler@gmail.com>
* All Rights Reserved
*


+ 1
- 1
caca/event.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/figfont.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/file.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2006-2007 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/font.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/frame.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/graphics.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/legacy.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/line.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/prof.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/string.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/time.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/transform.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
caca/triangle.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 3
- 2
cxx/caca++.cpp Visa fil

@@ -1,6 +1,7 @@
/*
* libcaca++ C++ bindings for libcaca
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* libcaca++ C++ bindings for libcaca
* Copyright (c) 2006-2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 3
- 2
cxx/caca++.h Visa fil

@@ -1,6 +1,7 @@
/*
* libcaca++ C++ bindings for libcaca
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* libcaca++ C++ bindings for libcaca
* Copyright (c) 2006-2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 2
- 1
cxx/cxxtest.cpp Visa fil

@@ -1,6 +1,7 @@
/*
* cpptest libcaca++ rendering test
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* Copyright (c) 2006-2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/blit.c Visa fil

@@ -1,6 +1,6 @@
/*
* blit libcaca blit test program
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/canvas.c Visa fil

@@ -1,6 +1,6 @@
/*
* all full libcaca API test
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/colors.c Visa fil

@@ -1,6 +1,6 @@
/*
* colors display all possible libcaca colour pairs
* Copyright (c) 2003-2004 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 0
examples/conio-snake.cpp Visa fil

@@ -1,6 +1,7 @@
/*
* conio-snake snake game using the <conio.h> API
* Copyright (c) 2003-2004 Simon Huggins <webmaster#simonhuggins.com>
* 2009-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* Permission to use, copy, modify, and/or distribute this software for any


+ 4
- 0
examples/conio.c Visa fil

@@ -15,6 +15,10 @@
*Sorry for the inconvenience
*/

/*Ported to libcaca
*Copyright (c) 2009-2010 Sam Hocevar <sam@hocevar.net>
*/

#include "config.h"

#include <stdio.h>


+ 1
- 1
examples/demo.c Visa fil

@@ -1,6 +1,6 @@
/*
* demo demo for libcaca
* Copyright (c) 2003-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/demo0.c Visa fil

@@ -1,6 +1,6 @@
/*
* demo demo for libcaca version 0.9
* Copyright (c) 2003-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or


+ 1
- 1
examples/dithering.c Visa fil

@@ -1,6 +1,6 @@
/*
* dithering libcaca dithering test program
* Copyright (c) 2003 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/driver.c Visa fil

@@ -1,6 +1,6 @@
/*
* driver libcaca Unicode rendering test program
* Copyright (c) 2007 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2007-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/event.c Visa fil

@@ -1,6 +1,6 @@
/*
* event event lister for libcaca
* Copyright (c) 2004 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2004-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/export.c Visa fil

@@ -1,6 +1,6 @@
/*
* export libcaca export test program
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/figfont.c Visa fil

@@ -1,6 +1,6 @@
/*
* figfont libcaca FIGfont test program
* Copyright (c) 2007-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2007-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/font.c Visa fil

@@ -1,6 +1,6 @@
/*
* font libcaca font test program
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/font2tga.c Visa fil

@@ -1,6 +1,6 @@
/*
* font2tga libcaca font test program
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/frames.c Visa fil

@@ -1,6 +1,6 @@
/*
* frames canvas frame switching features
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/fullwidth.c Visa fil

@@ -1,6 +1,6 @@
/*
* fullwidth libcaca fullwidth Unicode characters test program
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/gamma.c Visa fil

@@ -1,6 +1,6 @@
/*
* gamma libcaca gamma test program
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/hsv.c Visa fil

@@ -1,6 +1,6 @@
/*
* hsv libcaca HSV rendering test program
* Copyright (c) 2003 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/import.c Visa fil

@@ -1,6 +1,6 @@
/*
* import libcaca importers test program
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* Copyright (c) 2006-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/input.c Visa fil

@@ -1,6 +1,6 @@
/*
* input libcaca text input test program
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/mouse.c Visa fil

@@ -1,6 +1,6 @@
/*
* mouse libcaca mouse events
* Copyright (c) 2006-2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
* Copyright (c) 2006-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/spritedit.c Visa fil

@@ -1,6 +1,6 @@
/*
* spritedit sprite editor for libcaca
* Copyright (c) 2003-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/swallow.c Visa fil

@@ -1,6 +1,6 @@
/*
* swallow swallow another libcaca application
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/text.c Visa fil

@@ -1,6 +1,6 @@
/*
* text canvas text import/export
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/transform.c Visa fil

@@ -1,6 +1,6 @@
/*
* unicode libcaca Unicode rendering test program
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/trifiller.c Visa fil

@@ -1,6 +1,6 @@
/*
* trifiller texture mapping features
* Copyright (c) 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
* Copyright (c) 2009-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/truecolor.c Visa fil

@@ -1,6 +1,6 @@
/*
* truecolor truecolor canvas features
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
examples/unicode.c Visa fil

@@ -1,6 +1,6 @@
/*
* unicode libcaca Unicode rendering test program
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
kernel/kernel.c Visa fil

@@ -1,7 +1,7 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2009-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 1
kernel/kernel.h Visa fil

@@ -2,7 +2,7 @@
* libcaca
* libcaca Colour ASCII-Art library
* Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
* 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2009-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to


+ 1
- 0
kernel/multiboot.h Visa fil

@@ -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


+ 1
- 1
ruby/caca-canvas.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/caca-canvas.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
ruby/caca-display.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/caca-display.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
ruby/caca-dither.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/caca-dither.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
ruby/caca-event.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/caca-event.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
ruby/caca-font.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/caca-font.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
ruby/caca.c Visa fil

@@ -1,6 +1,6 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it


+ 11
- 0
ruby/common.h Visa fil

@@ -1,3 +1,14 @@
/*
* libcaca Ruby bindings
* Copyright (c) 2007-2010 Pascal Terjan <pterjan@linuxfr.org>
*
* 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__



+ 1
- 1
src/aafire.c Visa fil

@@ -1,6 +1,6 @@
/*
* cacafire fire demo for libcaca
* Copyright (c) 2003 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* 1998, 1999, 2001 Jan Hubicka <hubicka@freesoft.cz>
* All Rights Reserved
*


+ 1
- 1
src/cacademo.c Visa fil

@@ -2,7 +2,7 @@
* cacademo various demo effects for libcaca
* Copyright (c) 1998 Michele Bini <mibin@tin.it>
* 2003-2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2004-2006 Sam Hocevar <sam@hocevar.net>
* 2004-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/cacadraw.c Visa fil

@@ -1,6 +1,6 @@
/*
* event event lister for libcaca
* Copyright (c) 2004-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2004-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/cacaplay.c Visa fil

@@ -1,6 +1,6 @@
/*
* cacaplay caca file player
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/cacaserver.c Visa fil

@@ -1,7 +1,7 @@
/*
* cacaserver Colour ASCII-Art library
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 2006-2009 Sam Hocevar <sam@hocevar.net>
* 2006-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/cacaview.c Visa fil

@@ -1,6 +1,6 @@
/*
* cacaview image viewer for libcaca
* Copyright (c) 2003-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/common-image.c Visa fil

@@ -1,6 +1,6 @@
/*
* Imaging tools for cacaview and img2irc
* Copyright (c) 2003-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/common-image.h Visa fil

@@ -1,6 +1,6 @@
/*
* Imaging tools for cacaview and img2irc
* Copyright (c) 2003-2006 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2003-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* This program is free software. It comes without any warranty, to


+ 1
- 1
src/img2txt.c Visa fil

@@ -1,6 +1,6 @@
/*
* img2txt image to text converter
* Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
* 2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*


+ 12
- 0
src/texture.h Visa fil

@@ -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,


+ 3
- 2
test/Makefile.am Visa fil

@@ -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


+ 39
- 0
test/check-copyright Visa fil

@@ -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


Vissa filer visades inte eftersom för många filer har ändrats

Laddar…
Avbryt
Spara