templates/script.js
+templates/LICENCE.txt
save/lock
/library/*/*.usvg
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
---------------
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)
#!/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;
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 }
-<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>
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>