From 5827b7acc90b7df822c51826c312ed6f6fadb9d0 Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Fri, 29 Dec 2017 00:34:02 +0100 Subject: [PATCH] added fancy copyright and license disclaimer using licor --- licor/__init__.py | 19 +++++++++++++++ licor/__main__.py | 51 ++++++++++++++------------------------- licor/comment.py | 54 ++++++++++++++---------------------------- licor/filediscovery.py | 51 ++++++++++++++------------------------- licor/io.py | 54 +++++++++++++++--------------------------- licor/main.py | 51 ++++++++++++++------------------------- licor/templates.py | 51 ++++++++++++++------------------------- licor/work.py | 51 ++++++++++++++------------------------- 8 files changed, 146 insertions(+), 236 deletions(-) diff --git a/licor/__init__.py b/licor/__init__.py index e69de29..f0df3dc 100644 --- a/licor/__init__.py +++ b/licor/__init__.py @@ -0,0 +1,19 @@ +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # + diff --git a/licor/__main__.py b/licor/__main__.py index b6c3065..30324fb 100644 --- a/licor/__main__.py +++ b/licor/__main__.py @@ -1,37 +1,22 @@ -# -# Copyright(c) Daniel Knüttel -# +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . from .main import (list_this_path, list_all, list_db, diff --git a/licor/comment.py b/licor/comment.py index acec8d7..3d7c225 100644 --- a/licor/comment.py +++ b/licor/comment.py @@ -1,39 +1,21 @@ - - -# -# Copyright(c) Daniel Knüttel -# - -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # def pad_line(line, pad_to): diff --git a/licor/filediscovery.py b/licor/filediscovery.py index 5760ad9..3046766 100644 --- a/licor/filediscovery.py +++ b/licor/filediscovery.py @@ -1,37 +1,22 @@ -# -# Copyright(c) Daniel Knüttel -# +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . import glob, os diff --git a/licor/io.py b/licor/io.py index b02dfa3..92efeeb 100644 --- a/licor/io.py +++ b/licor/io.py @@ -1,40 +1,24 @@ +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # + import os -# -# Copyright(c) Daniel Knüttel -# - -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . - def check_file_perm(filename): """ diff --git a/licor/main.py b/licor/main.py index d5b79be..221e5e4 100644 --- a/licor/main.py +++ b/licor/main.py @@ -1,37 +1,22 @@ -# -# Copyright(c) Daniel Knüttel -# +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . from .work import work_all, work_this_path from .templates import get_template_meta, format_template, get_templates_available diff --git a/licor/templates.py b/licor/templates.py index e1659b0..d18e2ab 100644 --- a/licor/templates.py +++ b/licor/templates.py @@ -1,37 +1,22 @@ -# -# Copyright(c) Daniel Knüttel -# +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . import pkg_resources, json from itertools import permutations diff --git a/licor/work.py b/licor/work.py index 687e00b..1b76ad1 100644 --- a/licor/work.py +++ b/licor/work.py @@ -1,37 +1,22 @@ -# -# Copyright(c) Daniel Knüttel -# +# Copyright (c) 2017 Daniel Knüttel # +# # +# This file is part of licor. # +# # +# licor is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# licor 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 Affero General Public License # +# along with licor. If not, see . # +# # +# # -# This program is free software. -# Anyways if you think this program is worth it -# and we meet shout a drink for me. - - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# Dieses Programm ist Freie Software: Sie können es unter den Bedingungen -# der GNU Affero General Public License, wie von der Free Software Foundation, -# Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren -# veröffentlichten Version, weiterverbreiten und/oder modifizieren. -# -# Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber -# OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite -# Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. -# Siehe die GNU Affero General Public License für weitere Details. -# -# Sie sollten eine Kopie der GNU Affero General Public License zusammen mit diesem -# Programm erhalten haben. Wenn nicht, siehe . from .filediscovery import discover_all, discover_this_path import os