From 8a4b6f079b516e939fd55c4014dfcbd20142462f Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Sun, 30 Sep 2018 16:54:03 +0200 Subject: python: remove shebangs of non-main scripts and make others executable Some of the scripts that have a #!/usr/bin/python3 shebang do not have a main() like function. These scripts will not get executed but only imported. They do not need the shebang. A few others are not installed with 'make install', but do have a main() like function. These scripts are expected to be used by developers for different tasks (mostly code generation). Marking these scripts executable to make it easier to identify them. Change-Id: I73541471deb7e0830766b804786244e73dfe4221 Updates: #411 Signed-off-by: Niels de Vos --- events/src/gf_event.py | 1 - extras/gnfs-loganalyse.py | 0 extras/snap_scheduler/conf.py.in | 1 - geo-replication/syncdaemon/conf.py.in | 1 - geo-replication/tests/__init__.py | 1 - geo-replication/tests/unit/__init__.py | 1 - geo-replication/tests/unit/test_gsyncdstatus.py | 0 geo-replication/tests/unit/test_syncdutils.py | 1 - libglusterfs/src/gen-defaults.py | 0 xlators/features/changelog/lib/examples/python/changes.py | 0 xlators/features/cloudsync/src/cloudsync-fops-c.py | 0 xlators/features/cloudsync/src/cloudsync-fops-h.py | 0 xlators/features/glupy/src/__init__.py.in | 2 -- xlators/features/utime/src/utime-gen-fops-c.py | 0 xlators/features/utime/src/utime-gen-fops-h.py | 0 15 files changed, 8 deletions(-) mode change 100644 => 100755 extras/gnfs-loganalyse.py mode change 100644 => 100755 geo-replication/tests/unit/test_gsyncdstatus.py mode change 100644 => 100755 libglusterfs/src/gen-defaults.py mode change 100644 => 100755 xlators/features/changelog/lib/examples/python/changes.py mode change 100644 => 100755 xlators/features/cloudsync/src/cloudsync-fops-c.py mode change 100644 => 100755 xlators/features/cloudsync/src/cloudsync-fops-h.py mode change 100644 => 100755 xlators/features/utime/src/utime-gen-fops-c.py mode change 100644 => 100755 xlators/features/utime/src/utime-gen-fops-h.py diff --git a/events/src/gf_event.py b/events/src/gf_event.py index 1454063c863..6cde91aad40 100644 --- a/events/src/gf_event.py +++ b/events/src/gf_event.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, Inc. diff --git a/extras/gnfs-loganalyse.py b/extras/gnfs-loganalyse.py old mode 100644 new mode 100755 diff --git a/extras/snap_scheduler/conf.py.in b/extras/snap_scheduler/conf.py.in index 35838005fc2..6dcca0534a7 100644 --- a/extras/snap_scheduler/conf.py.in +++ b/extras/snap_scheduler/conf.py.in @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2016 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/geo-replication/syncdaemon/conf.py.in b/geo-replication/syncdaemon/conf.py.in index 82bbb69bc58..2042fa9cdfb 100644 --- a/geo-replication/syncdaemon/conf.py.in +++ b/geo-replication/syncdaemon/conf.py.in @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2016 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/geo-replication/tests/__init__.py b/geo-replication/tests/__init__.py index 31ab58b18b2..b4648b69645 100644 --- a/geo-replication/tests/__init__.py +++ b/geo-replication/tests/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2011-2014 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/geo-replication/tests/unit/__init__.py b/geo-replication/tests/unit/__init__.py index 31ab58b18b2..b4648b69645 100644 --- a/geo-replication/tests/unit/__init__.py +++ b/geo-replication/tests/unit/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2011-2014 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/geo-replication/tests/unit/test_gsyncdstatus.py b/geo-replication/tests/unit/test_gsyncdstatus.py old mode 100644 new mode 100755 diff --git a/geo-replication/tests/unit/test_syncdutils.py b/geo-replication/tests/unit/test_syncdutils.py index f01015241fd..ff537ab2660 100644 --- a/geo-replication/tests/unit/test_syncdutils.py +++ b/geo-replication/tests/unit/test_syncdutils.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2011-2014 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/libglusterfs/src/gen-defaults.py b/libglusterfs/src/gen-defaults.py old mode 100644 new mode 100755 diff --git a/xlators/features/changelog/lib/examples/python/changes.py b/xlators/features/changelog/lib/examples/python/changes.py old mode 100644 new mode 100755 diff --git a/xlators/features/cloudsync/src/cloudsync-fops-c.py b/xlators/features/cloudsync/src/cloudsync-fops-c.py old mode 100644 new mode 100755 diff --git a/xlators/features/cloudsync/src/cloudsync-fops-h.py b/xlators/features/cloudsync/src/cloudsync-fops-h.py old mode 100644 new mode 100755 diff --git a/xlators/features/glupy/src/__init__.py.in b/xlators/features/glupy/src/__init__.py.in index 3a28658e401..3ad9513f40e 100644 --- a/xlators/features/glupy/src/__init__.py.in +++ b/xlators/features/glupy/src/__init__.py.in @@ -1,4 +1,2 @@ -#!/usr/bin/python3 - from pkgutil import extend_path __path__ = extend_path(__path__, __name__) diff --git a/xlators/features/utime/src/utime-gen-fops-c.py b/xlators/features/utime/src/utime-gen-fops-c.py old mode 100644 new mode 100755 diff --git a/xlators/features/utime/src/utime-gen-fops-h.py b/xlators/features/utime/src/utime-gen-fops-h.py old mode 100644 new mode 100755 -- cgit