chiark / gitweb /
build system: debian/copyright file
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Mar 2020 14:31:30 +0000 (14:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Mar 2020 14:31:30 +0000 (14:31 +0000)
Template, generation code, and output.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/copyright [new file with mode: 0644]
debian/copyright.head [new file with mode: 0644]
debian/rules

diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..b46d636
--- /dev/null
@@ -0,0 +1,44 @@
+Format: 1.0
+
+Files: *
+Copyright: 2016,2020 Ian Jackson
+License: GPL-3+
+
+License: GPL-3+
+ Legal information
+ =================
+ .
+ This package, chiark-tcl-applet, is
+  Copyright 2016-2020 Ian Jackson
+ .
+     chiark-tcl-applet 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 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 package as the file GPL-3.
+     If not, see https://www.gnu.org/.
+ .
+ Individual files generally contain the following tag in the copyright
+ notice, instead of the full licence grant text:
+   SPDX-License-Identifier: GPL-3.0-or-later
+ As is conventional, this should be read as a licence grant.
+ .
+ The Debian packaging files in the debian/ subdirectory are under a
+ more permissive licence - the MIT licence, debian/MIT-LICENCE, as
+ indicated in those files by:
+   SPDX-License-Identifier: MIT
+ (This is useful only if (parts of) these files are copied elsewhere,
+ since as provided by the GPL3, when the package is distributed as a
+ work as a whole, these files are covered by the GPL3.)
+ .
+ Contributions are accepted based on the git commit Signed-off-by
+ convention, by which the contributors' certify their contributions
+ according to the Developer Certificate of Origin version 1.1 - see
+ the file DEVELOPER-CERTIFICATE.
diff --git a/debian/copyright.head b/debian/copyright.head
new file mode 100644 (file)
index 0000000..c08782c
--- /dev/null
@@ -0,0 +1,7 @@
+Format: 1.0
+
+Files: *
+Copyright: 2016,2020 Ian Jackson
+License: GPL-3+
+
+License: GPL-3+
index 7916f8818b398958b89bd794a194fb0959d91692..867ea35d7c565b0a6620b12ae61b53b083c9dfdf 100755 (executable)
@@ -8,3 +8,9 @@ export prefix=/usr
 
 %:
        dh $@
+
+debian/copyright: debian/copyright.head README debian/rules
+       cat >$@.tmp debian/copyright.head
+       sed >>$@.tmp <README -n \
+               '/^Legal information$$/,$$ { s/^$$/./; s/^/ /; p; }'
+       mv -f $@.tmp $@