emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master fb0e5b2 1/3: Assign FSF Copyright and boilerplate.


From: Rocky Bernstein
Subject: [elpa] master fb0e5b2 1/3: Assign FSF Copyright and boilerplate.
Date: Mon, 16 Feb 2015 04:04:27 +0000

branch: master
commit fb0e5b2dabd8acdc507a813873e2ca61df774e1f
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Assign FSF Copyright and boilerplate.
---
 Makefile.am           |   20 +++++++++++++++++++-
 example/gcd.el        |   25 +++++++++++++++++++++++--
 example/test-gcd.el   |   25 +++++++++++++++++++++++--
 test-simple.el        |    6 ++----
 test/test-basic.el    |   21 +++++++++++++++++++++
 test/test-fns.el      |   21 +++++++++++++++++++++
 test/test-no-clear.el |   21 +++++++++++++++++++++
 7 files changed, 130 insertions(+), 9 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 524deb2..a1c318c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,7 @@ check: $(test-files)
 README: README.textile
        ln -s README.md README
 
-PHONY=check clean dist distclean test check-short check-terse install-short
+PHONY=check check_copyrights clean dist distclean test check-short check-terse 
install-short
 
 if MAINTAINER_MODE
 
@@ -44,3 +44,21 @@ check-terse:
 #: Run "make install"
 install-short:
        $(MAKE) install 2>&1  | $(RUBY) make-check-filter.rb
+
+CR_EXCEPTIONS=copyright_exceptions
+#: Check for GNU Copyrights.
+check_copyrights:
+       @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
+       @export LANG=C;                                                 \
+       find . -name '.git' -prune -o -name '*.el' -print0 |            \
+           xargs -0 grep -L 'Free Software Foundation, Inc' |          \
+           grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$';     \
+       find . -name '.git' -prune -o -name '*.el' -print |             \
+           while read f; do                                            \
+               fquoted="$$(echo $$f|tr '|' '_')";                      \
+               sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N'       \
+                   -e '/Free Software Foundation/d'                    \
+                   -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p"        \
+                  "$$f";                                               \
+           done | sort >$(CR_EXCEPTIONS)~
+       diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"
diff --git a/copyright_exceptions b/copyright_exceptions
new file mode 100644
index 0000000..e69de29
diff --git a/example/gcd.el b/example/gcd.el
index 9a1ac20..ed587be 100644
--- a/example/gcd.el
+++ b/example/gcd.el
@@ -1,11 +1,32 @@
+;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; Author: Rocky Bernstein <address@hidden>
+;; URL: http://github.com/rocky/emacs-test-simple
+;; Keywords: unit-test
+;; Version: 1.0
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see
+;; <http://www.gnu.org/licenses/>.
 (defun gcd(a b)
   "Greatest Common Divisor of A and B"
   ;; Make a < b
-  (if (> a b) 
+  (if (> a b)
       (let ((c a))
        (setq a b)
        (setq b c)))
-  (cond 
+  (cond
    ((< a 0) nil)
    ((or (= 0 (- b a)) (= a 1)) a)
    (t (gcd (- b a) a))
diff --git a/example/test-gcd.el b/example/test-gcd.el
index ce4ccae..8ffdce8 100644
--- a/example/test-gcd.el
+++ b/example/test-gcd.el
@@ -1,8 +1,29 @@
+;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; Author: Rocky Bernstein <address@hidden>
+;; URL: http://github.com/rocky/emacs-test-simple
+;; Keywords: unit-test
+;; Version: 1.0
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see
+;; <http://www.gnu.org/licenses/>.
 (require 'test-simple)
 
 (test-simple-start)
 
-(assert-t (load-file "./gcd.el") 
+(assert-t (load-file "./gcd.el")
          "Can't load gcd.el - are you in the right directory?" )
 
 (note "degenereate cases")
@@ -14,7 +35,7 @@
 (assert-equal 1 (gcd 3 5) "gcd(3,5)")
 (assert-equal 8 (gcd 8 32) "gcd(8,32)")
 
-(assert-raises error (gcd "a" 32) 
+(assert-raises error (gcd "a" 32)
               "Passing a string value should raise an error")
 
 (end-tests)
diff --git a/test-simple.el b/test-simple.el
index dde4bad..b9870c9 100644
--- a/test-simple.el
+++ b/test-simple.el
@@ -1,15 +1,13 @@
 ;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
 ;; Rewritten from Phil Hagelberg's behave.el by rocky
 
-;; Copyright (C) 2010, 2012-2013, 2014 Rocky Bernstein
+;; Copyright (C) 2015 Free Software Foundation, Inc
 
-;; Author: Rocky Bernstein
+;; Author: Rocky Bernstein <address@hidden>
 ;; URL: http://github.com/rocky/emacs-test-simple
 ;; Keywords: unit-test
 ;; Version: 1.0
 
-;; This file is NOT part of GNU Emacs.
-
 ;; This program is free software: you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as
 ;; published by the Free Software Foundation, either version 3 of the
diff --git a/test/test-basic.el b/test/test-basic.el
index 72cb5b3..2751826 100644
--- a/test/test-basic.el
+++ b/test/test-basic.el
@@ -1,3 +1,24 @@
+;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; Author: Rocky Bernstein <address@hidden>
+;; URL: http://github.com/rocky/emacs-test-simple
+;; Keywords: unit-test
+;; Version: 1.0
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see
+;; <http://www.gnu.org/licenses/>.
 (require 'cl)
 (load-file "../test-simple.el")
 (test-simple-start "test-simple.el")
diff --git a/test/test-fns.el b/test/test-fns.el
index c690289..be36d4a 100644
--- a/test/test-fns.el
+++ b/test/test-fns.el
@@ -1,3 +1,24 @@
+;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; Author: Rocky Bernstein <address@hidden>
+;; URL: http://github.com/rocky/emacs-test-simple
+;; Keywords: unit-test
+;; Version: 1.0
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see
+;; <http://www.gnu.org/licenses/>.
 (require 'cl)
 (load-file "../test-simple.el")
 (test-simple-clear)
diff --git a/test/test-no-clear.el b/test/test-no-clear.el
index 5ac81a4..34bbbe7 100644
--- a/test/test-no-clear.el
+++ b/test/test-no-clear.el
@@ -1,3 +1,24 @@
+;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; Author: Rocky Bernstein <address@hidden>
+;; URL: http://github.com/rocky/emacs-test-simple
+;; Keywords: unit-test
+;; Version: 1.0
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see
+;; <http://www.gnu.org/licenses/>.
 (require 'cl)
 (load-file "../test-simple.el")
 ;; We don't do this or test-simple-start



reply via email to

[Prev in Thread] Current Thread [Next in Thread]