Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2018-12-21 17:31:40 +0900
committerBenjamin Poirier <bpoirier@suse.com>2018-12-21 17:31:40 +0900
commitc7a1094797a6846aeb759d908f19a55b3d27baa2 (patch)
tree16c2fec92405228ccce5115a6d72d8afb5c2ccb4
parente5655f63f99c85ba0095d268ceeda5a9512abb2d (diff)
git-sort: Add license text
-rwxr-xr-xscripts/git_sort/check_missing_fixes.sh17
-rw-r--r--scripts/git_sort/clean_conflicts.awk17
-rwxr-xr-xscripts/git_sort/clean_header.sh17
-rw-r--r--scripts/git_sort/exc.py16
-rwxr-xr-xscripts/git_sort/git_sort.py17
-rw-r--r--scripts/git_sort/lib.py17
-rw-r--r--scripts/git_sort/lib.sh17
-rw-r--r--scripts/git_sort/lib_from.sh17
-rw-r--r--scripts/git_sort/lib_tag.sh17
-rwxr-xr-xscripts/git_sort/merge_tool.py17
-rw-r--r--scripts/git_sort/patch.py17
-rw-r--r--scripts/git_sort/patch_body.awk17
-rw-r--r--scripts/git_sort/patch_header.awk17
-rwxr-xr-xscripts/git_sort/pre-commit.sh17
-rwxr-xr-xscripts/git_sort/qcp.py17
-rwxr-xr-xscripts/git_sort/qdupcheck.py17
-rwxr-xr-xscripts/git_sort/qgoto.py17
-rw-r--r--scripts/git_sort/quilt-mode.sh17
-rwxr-xr-xscripts/git_sort/refs_in_series.sh17
-rwxr-xr-xscripts/git_sort/sequence-insert.py17
-rwxr-xr-xscripts/git_sort/series_conf.py17
-rwxr-xr-xscripts/git_sort/series_insert.py17
-rwxr-xr-xscripts/git_sort/series_sort.py17
-rwxr-xr-xscripts/git_sort/update_clone.py17
24 files changed, 407 insertions, 0 deletions
diff --git a/scripts/git_sort/check_missing_fixes.sh b/scripts/git_sort/check_missing_fixes.sh
index c873679b81..638b5a852e 100755
--- a/scripts/git_sort/check_missing_fixes.sh
+++ b/scripts/git_sort/check_missing_fixes.sh
@@ -1,5 +1,22 @@
#!/bin/bash
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# Check if a commit is referenced in the log of later commits.
# Useful to identify missing followup commits.
diff --git a/scripts/git_sort/clean_conflicts.awk b/scripts/git_sort/clean_conflicts.awk
index 4997fb1181..a5bb17e78b 100644
--- a/scripts/git_sort/clean_conflicts.awk
+++ b/scripts/git_sort/clean_conflicts.awk
@@ -1,5 +1,22 @@
#!/usr/bin/awk -f
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
BEGIN {
conflicts = 0
}
diff --git a/scripts/git_sort/clean_header.sh b/scripts/git_sort/clean_header.sh
index dd185e403c..b761585c8d 100755
--- a/scripts/git_sort/clean_header.sh
+++ b/scripts/git_sort/clean_header.sh
@@ -1,5 +1,22 @@
#!/bin/bash -e
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# Filter a patch file such that it is properly formatted per SUSE rules.
# Useful when importing patches into SUSE's kernel-source.git.
diff --git a/scripts/git_sort/exc.py b/scripts/git_sort/exc.py
index b302fdc176..7f7af685f5 100644
--- a/scripts/git_sort/exc.py
+++ b/scripts/git_sort/exc.py
@@ -1,6 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
class KSException(BaseException):
pass
diff --git a/scripts/git_sort/git_sort.py b/scripts/git_sort/git_sort.py
index 5f2c2ae33c..a07d737172 100755
--- a/scripts/git_sort/git_sort.py
+++ b/scripts/git_sort/git_sort.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 argparse
import bisect
import collections
diff --git a/scripts/git_sort/lib.py b/scripts/git_sort/lib.py
index 191e4b486f..f029267b7e 100644
--- a/scripts/git_sort/lib.py
+++ b/scripts/git_sort/lib.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 collections
import operator
import os
diff --git a/scripts/git_sort/lib.sh b/scripts/git_sort/lib.sh
index 497d9f8ecb..a3b57200b3 100644
--- a/scripts/git_sort/lib.sh
+++ b/scripts/git_sort/lib.sh
@@ -1,3 +1,20 @@
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
bash_single_esc () {
sed "s/'/'\\\\''/g"
}
diff --git a/scripts/git_sort/lib_from.sh b/scripts/git_sort/lib_from.sh
index 95f8a8d36c..b69fc86b7d 100644
--- a/scripts/git_sort/lib_from.sh
+++ b/scripts/git_sort/lib_from.sh
@@ -1,3 +1,20 @@
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# from_get
from_get () {
awk '
diff --git a/scripts/git_sort/lib_tag.sh b/scripts/git_sort/lib_tag.sh
index 6b4640f1e6..e64c302131 100644
--- a/scripts/git_sort/lib_tag.sh
+++ b/scripts/git_sort/lib_tag.sh
@@ -1,3 +1,20 @@
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# countkeys <key>
countkeys () {
local key=$1
diff --git a/scripts/git_sort/merge_tool.py b/scripts/git_sort/merge_tool.py
index 8a70eed430..f3a148d946 100755
--- a/scripts/git_sort/merge_tool.py
+++ b/scripts/git_sort/merge_tool.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
"""
Depends on `merge` from rcs
diff --git a/scripts/git_sort/patch.py b/scripts/git_sort/patch.py
index b400b5db0b..1890d4fb91 100644
--- a/scripts/git_sort/patch.py
+++ b/scripts/git_sort/patch.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 io
import re
import sys
diff --git a/scripts/git_sort/patch_body.awk b/scripts/git_sort/patch_body.awk
index b66eddd9c4..ea04ee5729 100644
--- a/scripts/git_sort/patch_body.awk
+++ b/scripts/git_sort/patch_body.awk
@@ -1,5 +1,22 @@
#!/usr/bin/awk -f
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# from quilt's patchfns
!body && /^(---|\*\*\*|Index:)[ \t][^ \t]|^diff -/ {
diff --git a/scripts/git_sort/patch_header.awk b/scripts/git_sort/patch_header.awk
index e7f604e0f8..008161975a 100644
--- a/scripts/git_sort/patch_header.awk
+++ b/scripts/git_sort/patch_header.awk
@@ -1,5 +1,22 @@
#!/usr/bin/awk -f
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# from quilt's patchfns
/^(---|\*\*\*|Index:)[ \t][^ \t]|^diff -/ {
diff --git a/scripts/git_sort/pre-commit.sh b/scripts/git_sort/pre-commit.sh
index 4e9fb33ef3..b6ecb8f7e0 100755
--- a/scripts/git_sort/pre-commit.sh
+++ b/scripts/git_sort/pre-commit.sh
@@ -1,5 +1,22 @@
#!/bin/bash
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
_libdir=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
sorted_section_changed () {
diff --git a/scripts/git_sort/qcp.py b/scripts/git_sort/qcp.py
index 233425610a..1b69943372 100755
--- a/scripts/git_sort/qcp.py
+++ b/scripts/git_sort/qcp.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 argparse
import io
import os
diff --git a/scripts/git_sort/qdupcheck.py b/scripts/git_sort/qdupcheck.py
index 72c5de79fb..d8c7920feb 100755
--- a/scripts/git_sort/qdupcheck.py
+++ b/scripts/git_sort/qdupcheck.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 argparse
import os
import os.path
diff --git a/scripts/git_sort/qgoto.py b/scripts/git_sort/qgoto.py
index f3a8e38e34..a164432dd2 100755
--- a/scripts/git_sort/qgoto.py
+++ b/scripts/git_sort/qgoto.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 argparse
import os
import subprocess
diff --git a/scripts/git_sort/quilt-mode.sh b/scripts/git_sort/quilt-mode.sh
index c9f0b7bbaf..b6ab09c380 100644
--- a/scripts/git_sort/quilt-mode.sh
+++ b/scripts/git_sort/quilt-mode.sh
@@ -1,6 +1,23 @@
# Contains a set of shell functions to assist in backporting upstream commits
# to SUSE's kernel-source.git.
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
_libdir=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
. "$_libdir"/lib.sh
. "$_libdir"/lib_tag.sh
diff --git a/scripts/git_sort/refs_in_series.sh b/scripts/git_sort/refs_in_series.sh
index cb58b7320f..43ddc05167 100755
--- a/scripts/git_sort/refs_in_series.sh
+++ b/scripts/git_sort/refs_in_series.sh
@@ -1,5 +1,22 @@
#!/bin/bash
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# Check if a commit is already part of a patch in SUSE's kernel-source.git
# Useful to check if a list of commits have already been backported.
diff --git a/scripts/git_sort/sequence-insert.py b/scripts/git_sort/sequence-insert.py
index 4a6142e2b8..78f753912a 100755
--- a/scripts/git_sort/sequence-insert.py
+++ b/scripts/git_sort/sequence-insert.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
"""
When we want to backport a specific commit at its right position in the sorted
sub-series, it is most efficient to use sequence_patch.sh to expand the tree up
diff --git a/scripts/git_sort/series_conf.py b/scripts/git_sort/series_conf.py
index a3ea04e3cf..86cb451c4b 100755
--- a/scripts/git_sort/series_conf.py
+++ b/scripts/git_sort/series_conf.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
# This script is used by the commit hook to detect if there are changes in the
# sorted section. Developers may commit to kernel-source without having changed
# the sorted section and used the git-sort tools, therefore without having the
diff --git a/scripts/git_sort/series_insert.py b/scripts/git_sort/series_insert.py
index 622b1cbea4..d55d7d0d79 100755
--- a/scripts/git_sort/series_insert.py
+++ b/scripts/git_sort/series_insert.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
"""
Script to insert new patches in series.conf according to the upstream order of
commits that the patches backport.
diff --git a/scripts/git_sort/series_sort.py b/scripts/git_sort/series_sort.py
index dc62a4a2f3..ae50761a97 100755
--- a/scripts/git_sort/series_sort.py
+++ b/scripts/git_sort/series_sort.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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.
+
"""
Script to sort series.conf lines according to the upstream order of commits that
the patches backport.
diff --git a/scripts/git_sort/update_clone.py b/scripts/git_sort/update_clone.py
index 7039d70c10..0223235dfa 100755
--- a/scripts/git_sort/update_clone.py
+++ b/scripts/git_sort/update_clone.py
@@ -1,6 +1,23 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# Copyright (C) 2018 SUSE LLC
+#
+# 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 2
+# 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 argparse
import collections
import pygit2