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 <ndevos@redhat.com>
This commit is contained in:
parent
c96778b354
commit
8a4b6f079b
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com>
|
||||
|
0
extras/gnfs-loganalyse.py
Normal file → Executable file
0
extras/gnfs-loganalyse.py
Normal file → Executable file
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com>
|
||||
# This file is part of GlusterFS.
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com>
|
||||
# This file is part of GlusterFS.
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2011-2014 Red Hat, Inc. <http://www.redhat.com>
|
||||
# This file is part of GlusterFS.
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2011-2014 Red Hat, Inc. <http://www.redhat.com>
|
||||
# This file is part of GlusterFS.
|
||||
|
0
geo-replication/tests/unit/test_gsyncdstatus.py
Normal file → Executable file
0
geo-replication/tests/unit/test_gsyncdstatus.py
Normal file → Executable file
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2011-2014 Red Hat, Inc. <http://www.redhat.com>
|
||||
# This file is part of GlusterFS.
|
||||
|
0
libglusterfs/src/gen-defaults.py
Normal file → Executable file
0
libglusterfs/src/gen-defaults.py
Normal file → Executable file
0
xlators/features/changelog/lib/examples/python/changes.py
Normal file → Executable file
0
xlators/features/changelog/lib/examples/python/changes.py
Normal file → Executable file
0
xlators/features/cloudsync/src/cloudsync-fops-c.py
Normal file → Executable file
0
xlators/features/cloudsync/src/cloudsync-fops-c.py
Normal file → Executable file
0
xlators/features/cloudsync/src/cloudsync-fops-h.py
Normal file → Executable file
0
xlators/features/cloudsync/src/cloudsync-fops-h.py
Normal file → Executable file
@ -1,4 +1,2 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from pkgutil import extend_path
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
|
0
xlators/features/utime/src/utime-gen-fops-c.py
Normal file → Executable file
0
xlators/features/utime/src/utime-gen-fops-c.py
Normal file → Executable file
0
xlators/features/utime/src/utime-gen-fops-h.py
Normal file → Executable file
0
xlators/features/utime/src/utime-gen-fops-h.py
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user