chiark / gitweb /
wip licence annotations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Oct 2020 21:15:25 +0000 (22:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Oct 2020 21:15:25 +0000 (22:15 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
LICENCE
Makefile
media-scraper
src/bin/daemon-otter.rs
templates/loading.tera
templates/session.tera

index fbdf62d39f5d4a62e1e9432733343a3ef00a7b30..2a32136ab3f38f9fae9c4aefb8110914e8bee119 100644 (file)
@@ -1,3 +1,4 @@
 templates/script.js
+templates/LICENCE.txt
 save/lock
 /library/*/*.usvg
diff --git a/LICENCE b/LICENCE
index 261ab96136a7c09898b2e4a1ebe4e5e10b11b96b..323014ece1d233212f307667f20c5dc35f26a5b5 100644 (file)
--- a/LICENCE
+++ b/LICENCE
@@ -17,6 +17,11 @@ License v3 along with this program, in the file AGPL-3.
 If not, see <http://www.gnu.org/licenses/>.
 
 
+You can download the complete source code of a running instance of
+otter, by visiting the path /src.  There should be a link at the
+bottom of the page.
+
+
 Shape libraries
 ---------------
 
index ff73a757a5021249a12a14705676f7cc8bcc350a..0d27f653c9d99a2532d013c1b7476431e02bda37 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,10 @@ USVG_PROCESSOR = usvg-processor
 LIBRARY_PROCESS_SVG = ./$(USVG_PROCESSOR) $@ $(wordlist 1,2,$^) '$(USVG) $(USVG_OPTIONS)'
 $(LIBRARY_FILES): $(USVG_PROCESSOR) Makefile
 
-assets: templates/script.js libraries
+assets: templates/script.js templates/LICENCE.txt libraries
+
+templates/LICENCE.txt: templates/%.txt: %
+       cp $< $@.new && mv -f $@.new $@
 
 libraries: $(LIBRARY_FILES)
 
index fe1ea9221fd52ccbb3a66ae5b23a98cd443b54f2..d1abfd3f598dc17dd806e485d30ee9fbdeb79ede 100755 (executable)
@@ -1,10 +1,6 @@
 #!/usr/bin/perl -w
 use strict;
 
-# xxx copyright and source information in library svg as output by server
-# xxx at least original filename should be svg sent to clients
-# xxx should be mentioned in copyright statement at bottom of game page
-
 use POSIX;
 use IO::Handle;
 use Carp;
index a3fee20708c1617536c6bba8f530202a218a66c6..420d35f7f59986d52e2aea82983d8cec0344f196 100644 (file)
@@ -24,7 +24,7 @@ fn index() -> Template {
   Template::render("test",&c)
 }
 
-const RESOURCES : &[&str] = &["script.js", "style.css"];
+const RESOURCES : &[&str] = &["script.js", "style.css", "LICENCE.txt"];
 
 #[derive(Debug)]
 struct CheckedResourceLeaf { pub safe : &'static str }
index d17c8d36edb726bc3d0aa4115430e81b4bccb151..ec7188dc2914d98aebe6005232ac3cf4f0cc4570 100644 (file)
@@ -1,7 +1,12 @@
-<body id="loading_body">
 <!-- Copyright 2020 Ian Jackson
      SPDX-License-Identifier: AGPL-3.0-or-later
-     There is NO WARRANTY. -->
+     There is NO WARRANTY.
+     Source code for this running version is at /src -->
+<html>
+<head>
+<link rel="license" href="/_/LICENCE.txt">
+</head>
+<body id="loading_body">
 <h1 id="loading_token" data-ptoken="{{ ptoken }}">Loading!</h1>
 <div id="error"></div>
 <script src="/_/script.js"></script>
index f52107bedca3463d0d455c3bb29ff8d82fe7dfc5..daccf8d61d9947356d83e0a4fcade4d5d5854591 100644 (file)
@@ -2,10 +2,7 @@
       data-ctoken="{{ctoken}}"
       data-us="{{player}}"
       data-gen="{{gen}}"
-      data-load="{{ load | escape }}"
- <!-- Copyright 2020 Ian Jackson
-     SPDX-License-Identifier: AGPL-3.0-or-later
-     There is NO WARRANTY. -->
+      data-load="{{ load | escape }}">
 <style>
   div.uokeys { display: flex; flex-wrap: wrap; }
   div[class|=uokey] {
 
 <hr>
 <address>
-<a href="/src/">source code for this running server version</a>
-
+  This server is running otter, the Online TableTop Environment
+  Renderer.
+<p>
+  otter is Free Software, according to the GNU Affero General
+  Public License, version 3 or (at your option) any later version.
+  There is NO WARRANTY.
+  You can download <a href="/src/">source code for this running server
+  version</a>.  That includes the source code for all the included
+  game piece pictures (shape libraries).
+<p>
+  The shape libraries have a variety of licences.  All those included
+  with otter are available under at least CC-BY-SA 3.0 or CC-BY-SA
+  4.0.  Check the source in "view source" in your browser, or the
+  browser Developer Tools (in Firefox, use Inspector); that will also
+  tell you the library piece filename.  If you want to edit them you
+  will probably want to start with the actual source code, because the
+  SVG pieces as sent by the server have generally been fed though an
+  SVG distiller.
+<p>
+  <a href="/_/LICENCE.txt">Further information about licensing</a>
+  etc. is available here, and of course also in the source code.
 </body>
+</html>