From: Olof-Joachim Frahm Date: Thu, 15 Jan 2015 23:45:10 +0000 (+0000) Subject: Separate ASDF file, new year changes. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=548f6608f9caec4c2687901c878f49fcd76cce7a;p=cl-inotify.git Separate ASDF file, new year changes. --- diff --git a/README.md b/README.md index 87fcee5..f4977c3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ CL-INOTIFY - Binding to the Linux inotify(7) API. -Copyright (C) 2011-13 Olof-Joachim Frahm +Copyright (C) 2011-15 Olof-Joachim Frahm Released under a Simplified BSD license. diff --git a/cl-inotify-tests.asd b/cl-inotify-tests.asd new file mode 100644 index 0000000..628c156 --- /dev/null +++ b/cl-inotify-tests.asd @@ -0,0 +1,38 @@ +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- + +;; Copyright (c) 2011-15, Olof-Joachim Frahm +;; All rights reserved. + +;; Redistribution and use in source and binary forms, with or without +;; modification, are permitted provided that the following conditions +;; are met: + +;; 1. Redistributions of source code must retain the above copyright +;; notice, this list of conditions and the following disclaimer. + +;; 2. Redistributions in binary form must reproduce the above copyright +;; notice, this list of conditions and the following disclaimer in the +;; documentation and/or other materials provided with the distribution. + +;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +;; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +(in-package #:cl-user) + +(asdf:defsystem #:cl-inotify-tests + :depends-on (#:cl-inotify #:fiveam) + :serial T + :components ((:module "tests" + :components + ((:file "package") + (:file "suite") + (:file "inotify"))))) diff --git a/cl-inotify.asd b/cl-inotify.asd index e30b3a8..4daff69 100644 --- a/cl-inotify.asd +++ b/cl-inotify.asd @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- -;; Copyright (c) 2011-12, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -25,7 +25,7 @@ ;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - + (in-package #:cl-user) (eval-when (:load-toplevel :execute) @@ -51,12 +51,3 @@ ((:file "package") (cffi-grovel:grovel-file "grovel") (:file "inotify"))))) - -(asdf:defsystem #:cl-inotify-tests - :depends-on (#:cl-inotify #:fiveam) - :serial T - :components ((:module "tests" - :components - ((:file "package") - (:file "suite") - (:file "inotify"))))) diff --git a/src/grovel.lisp b/src/grovel.lisp index fbe9a1e..7fcfd12 100644 --- a/src/grovel.lisp +++ b/src/grovel.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- -;; Copyright (c) 2011, Olof-Joachim Frahm +;; Copyright (c) 2011-2015, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,7 +27,7 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-inotify) - + (include "sys/inotify.h") ;; since 2.6.27 according to inotify_init(2) diff --git a/src/inotify.lisp b/src/inotify.lisp index fe404a3..a2ad5e8 100644 --- a/src/inotify.lisp +++ b/src/inotify.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,7 +27,7 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-inotify) - + (eval-when (:compile-toplevel :load-toplevel :execute) (when (boundp 'in-cloexec) (pushnew 'inotify1 *features*))) diff --git a/src/iolib.lisp b/src/iolib.lisp index 15d5739..dd616e7 100644 --- a/src/iolib.lisp +++ b/src/iolib.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,7 +27,7 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-inotify) - + (defun run-inotify-event-handler (watch event-handler &key (nonblocking T) (registered T)) "Registers an INOTIFY queue and runs EVENT-HANDLER with it as only parameter whenever input happens." diff --git a/src/package.lisp b/src/package.lisp index c9a52b7..444c72f 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,7 +27,7 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-user) - + (defpackage #:cl-inotify (:use #:cl #:cffi) (:import-from #:osicat-posix #:defsyscall) diff --git a/tests/inotify.lisp b/tests/inotify.lisp index 585a166..4787dd2 100644 --- a/tests/inotify.lisp +++ b/tests/inotify.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify-tests; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify-tests; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without diff --git a/tests/package.lisp b/tests/package.lisp index aa93f36..cd429dc 100644 --- a/tests/package.lisp +++ b/tests/package.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-user; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,6 +27,6 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-user) - + (defpackage #:cl-inotify-tests (:use #:cl #:cl-inotify #:fiveam)) diff --git a/tests/suite.lisp b/tests/suite.lisp index 2c9ad58..a57aa46 100644 --- a/tests/suite.lisp +++ b/tests/suite.lisp @@ -1,6 +1,6 @@ -;;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify-tests; -*- +;; -*- mode: lisp; syntax: common-lisp; coding: utf-8-unix; package: cl-inotify-tests; -*- -;; Copyright (c) 2011-13, Olof-Joachim Frahm +;; Copyright (c) 2011-15, Olof-Joachim Frahm ;; All rights reserved. ;; Redistribution and use in source and binary forms, with or without @@ -27,5 +27,5 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. (in-package #:cl-inotify-tests) - + (def-suite cl-inotify)