From a0e92a802815d55dafd303b39843ddd2b9784bdb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89ric=20Araujo?= Date: Tue, 26 Jul 2011 18:01:08 +0200 Subject: [PATCH] Fix missing or wrong shebangs and missing executable bits for scripts (#10318) --- Tools/scripts/abitype.py | 1 + Tools/scripts/cleanfuture.py | 0 Tools/scripts/combinerefs.py | 0 Tools/scripts/db2pickle.py | 0 Tools/scripts/diff.py | 1 + Tools/scripts/find_recursionlimit.py | 0 Tools/scripts/get-remote-certificate.py | 0 Tools/scripts/mailerdaemon.py | 1 + Tools/scripts/make_ctype.py | 1 + Tools/scripts/md5sum.py | 0 Tools/scripts/patchcheck.py | 1 + Tools/scripts/pickle2db.py | 0 Tools/scripts/pysource.py | 0 Tools/scripts/reindent-rst.py | 2 +- Tools/scripts/svneol.py | 0 15 files changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 Tools/scripts/abitype.py mode change 100644 => 100755 Tools/scripts/cleanfuture.py mode change 100644 => 100755 Tools/scripts/combinerefs.py mode change 100644 => 100755 Tools/scripts/db2pickle.py mode change 100644 => 100755 Tools/scripts/diff.py mode change 100644 => 100755 Tools/scripts/find_recursionlimit.py mode change 100644 => 100755 Tools/scripts/get-remote-certificate.py mode change 100644 => 100755 Tools/scripts/mailerdaemon.py mode change 100644 => 100755 Tools/scripts/make_ctype.py mode change 100644 => 100755 Tools/scripts/md5sum.py mode change 100644 => 100755 Tools/scripts/patchcheck.py mode change 100644 => 100755 Tools/scripts/pickle2db.py mode change 100644 => 100755 Tools/scripts/pysource.py mode change 100644 => 100755 Tools/scripts/svneol.py diff --git a/Tools/scripts/abitype.py b/Tools/scripts/abitype.py old mode 100644 new mode 100755 index e35ef6a1d3..4d96c8b70e --- a/Tools/scripts/abitype.py +++ b/Tools/scripts/abitype.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # This script converts a C file to use the PEP 384 type definition API # Usage: abitype.py < old_code > new_code import re, sys diff --git a/Tools/scripts/cleanfuture.py b/Tools/scripts/cleanfuture.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/db2pickle.py b/Tools/scripts/db2pickle.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/diff.py b/Tools/scripts/diff.py old mode 100644 new mode 100755 index 52dcab1ff9..9efb078fb8 --- a/Tools/scripts/diff.py +++ b/Tools/scripts/diff.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Command line interface to difflib.py providing diffs in four formats: * ndiff: lists every line and highlights interline changes. diff --git a/Tools/scripts/find_recursionlimit.py b/Tools/scripts/find_recursionlimit.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/get-remote-certificate.py b/Tools/scripts/get-remote-certificate.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/mailerdaemon.py b/Tools/scripts/mailerdaemon.py old mode 100644 new mode 100755 index 62189f14e9..aeb451e942 --- a/Tools/scripts/mailerdaemon.py +++ b/Tools/scripts/mailerdaemon.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Classes to parse mailer-daemon messages.""" import calendar diff --git a/Tools/scripts/make_ctype.py b/Tools/scripts/make_ctype.py old mode 100644 new mode 100755 index 359d6b3160..afee1c5833 --- a/Tools/scripts/make_ctype.py +++ b/Tools/scripts/make_ctype.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Script that generates the ctype.h-replacement in stringobject.c.""" NAMES = ("LOWER", "UPPER", "ALPHA", "DIGIT", "XDIGIT", "ALNUM", "SPACE") diff --git a/Tools/scripts/md5sum.py b/Tools/scripts/md5sum.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py old mode 100644 new mode 100755 index e767edabd9..13b8ba44b6 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import re import sys import shutil diff --git a/Tools/scripts/pickle2db.py b/Tools/scripts/pickle2db.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/pysource.py b/Tools/scripts/pysource.py old mode 100644 new mode 100755 diff --git a/Tools/scripts/reindent-rst.py b/Tools/scripts/reindent-rst.py index ceb84bfd3c..25608af66a 100755 --- a/Tools/scripts/reindent-rst.py +++ b/Tools/scripts/reindent-rst.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Make a reST file compliant to our pre-commit hook. # Currently just remove trailing whitespace. diff --git a/Tools/scripts/svneol.py b/Tools/scripts/svneol.py old mode 100644 new mode 100755 -- 2.40.0