diff --git a/analyse-run-time.py b/analyse-run-time.py index 8c3c085..fa3e6f0 100755 --- a/analyse-run-time.py +++ b/analyse-run-time.py @@ -1,4 +1,20 @@ #! /usr/bin/python +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc +# +# This program 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 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 +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import sys from tabulate import tabulate import re diff --git a/chunk-import.sh b/chunk-import.sh index 8cdd2bf..92070a4 100755 --- a/chunk-import.sh +++ b/chunk-import.sh @@ -1,4 +1,19 @@ #! /bin/bash +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc +# +# This program 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 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 +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. root_path="$( cd "$(dirname "$0")" ; pwd -P )/.." diff --git a/set-status.py b/set-status.py index b5cebbb..4119a9f 100755 --- a/set-status.py +++ b/set-status.py @@ -1,5 +1,5 @@ #! /usr/bin/python3 -# Copyright (C) 2018-2019 Merspieler, merspieler _at_ airmail.cc +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -34,11 +34,6 @@ while i < argc: elif sys.argv[i] == "--host": i += 1 host = sys.argv[i] - elif sys.argv[i] == "-v": - verbose = True - elif sys.argv[i] == "-f" or sys.argv[i] == "--file": - i += 1 - sfile = sys.argv[i] elif sys.argv[i] == "-h" or sys.argv[i] == "--help": print("usage: set-status.py [OPTIONS]") print("Manually set a tile status") diff --git a/split-world.py b/split-world.py index 880a961..4c3ad77 100755 --- a/split-world.py +++ b/split-world.py @@ -1,10 +1,45 @@ #! /usr/bin/python +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc +# +# This program 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 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 +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + import os import sys +argc = len(sys.argv) +i = 1 +first = True +while i < argc: + if sys.argv[i] == "-h" or sys.argv[i] == "--help": + print("usage: split-world.py [OPTIONS]") + print("Handles job asignments and keeps track of the status") + print("") + print(" Is the worldwide osm file") + print("OPTIONS") + print(" -h, --help Shows this help and exit") + sys.exit(0) + else: + if first: + world_file = sys.argv[i] + else: + print("Unknown option " + sys.argv[i]) + sys.exit(1) + i += 1 + config_path = os.path.dirname(os.path.realpath(__file__)) + "/osmium-config/" prefix = "osmium-cut-world-step-" -world_file = sys.argv[1] state4 = ['nw', 'ne', 'sw', 'se'] state2 = ['s', 'n'] diff --git a/worldbuild-manager.py b/worldbuild-manager.py index 400a31f..58875b4 100755 --- a/worldbuild-manager.py +++ b/worldbuild-manager.py @@ -1,5 +1,5 @@ #! /usr/bin/python3 -# Copyright (C) 2018-2019 Merspieler, merspieler _at_ airmail.cc +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as diff --git a/worldbuild-worker.py b/worldbuild-worker.py index 823b3ce..8820cb8 100755 --- a/worldbuild-worker.py +++ b/worldbuild-worker.py @@ -1,5 +1,5 @@ #! /usr/bin/python3 -# Copyright (C) 2018-2019 Merspieler, merspieler _at_ airmail.cc +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -59,7 +59,7 @@ while i < argc: print(" started: Run tiles marked as started. CAUTION, use with care.") print(" rebuild: Build tiles flaged for rebuild") print(" skip: Force building tile that are marked for being skipped") - print(" -h, --help Shows this help and exit") + print(" -h, --help Shows this help and exit") sys.exit(0) else: if first == 1: diff --git a/worldbuild.py b/worldbuild.py index 9c8be3d..3548b9a 100755 --- a/worldbuild.py +++ b/worldbuild.py @@ -1,5 +1,5 @@ #! /usr/bin/python3 -# Copyright (C) 2018-2019 Merspieler, merspieler _at_ airmail.cc +# Copyright (C) 2018-2020 Merspieler, merspieler _at_ airmail.cc # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as