From 248ff5a88f51ffde3217fd9945976b2cd8e738a1 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Tue, 25 Mar 2014 23:55:29 +0100 Subject: [PATCH] Add license stuff --- README.md | 28 ++++++++++++++++++++++++++++ project.clj | 6 +++--- src/buchdesmonats/core.clj | 21 ++++++++++++++++++++- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9239ed7..ed91c5e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,30 @@ +# About + Scrape the book list from the "Book of the month" project and generate a nice looking visual representation of the book covers. + +# Running + + java -jar buchdesmonats.jar + +# License + +Copyright (C) 2014 Aaron Mueller + + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/project.clj b/project.clj index 8d69ae7..f41e163 100644 --- a/project.clj +++ b/project.clj @@ -1,8 +1,8 @@ (defproject buchdesmonats "1.0" - :description "A simple tool to fetch all books of the months from the cthn.de project" + :description "A simple tool to fetch all books of the months from the cthn.de project." :url "http://cthn.de/projects/buch_des_monats" - :license {:name "Eclipse Public License" - :url "http://www.eclipse.org/legal/epl-v10.html"} + :license {:name "MIT License" + :url "http://opensource.org/licenses/MIT"} :dependencies [[org.clojure/clojure "1.5.1"] [enlive "1.1.5"] [me.raynes/fs "1.4.4"] diff --git a/src/buchdesmonats/core.clj b/src/buchdesmonats/core.clj index 48dc736..01e84c2 100644 --- a/src/buchdesmonats/core.clj +++ b/src/buchdesmonats/core.clj @@ -1,3 +1,22 @@ +;;; Copyright (C) 2014 Aaron Mueller +;;; +;;; Permission is hereby granted, free of charge, to any person obtaining a copy of +;;; this software and associated documentation files (the "Software"), to deal in +;;; the Software without restriction, including without limitation the rights to +;;; use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +;;; the Software, and to permit persons to whom the Software is furnished to do so, +;;; subject to the following conditions: +;;; +;;; The above copyright notice and this permission notice shall be included in all +;;; copies or substantial portions of the Software. +;;; +;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +;;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +;;; FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +;;; COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +;;; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +;;; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + (ns buchdesmonats.core (:gen-class) (:require [net.cgrand.enlive-html :as html] @@ -62,4 +81,4 @@ (generate-html (scrape-book-urls github-url) "public") (doall (pmap #(scrape-book-cover % target-dir) (find-missing-covers github-url target-dir))) - true)) + (System/exit 0)))