Rename Python scripts and add dynamic shebang

All Python scripts are now generated from a template with a dynamic
shebang.

ipatests/i18n.py is no longer an executable script with shebang. The
module is not executed as script directly, but rather as

    $(PYTHON) ipatests/i18n.py

Fixes: https://pagure.io/freeipa/issue/7680
All Python scripts are now template files with a dynamic shebang line.

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes
2018-08-23 14:49:06 +02:00
parent e4a3942e89
commit a347c11650
49 changed files with 100 additions and 48 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
#
# Authors: Sumit Bose <sbose@redhat.com>
# Based on ipa-server-install by Karl MacMillan <kmacmillan@mentalrootkit.com>
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2013 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2011 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
# Authors: Simo Sorce <ssorce@redhat.com>
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
#
# Based on ipa-replica-manage by Karl MacMillan <kmacmillan@mentalrootkit.com>
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
"""Test client for ipa-custodia
The test script is expected to be executed on an IPA server with existing
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Copyright (C) 2017 IPA Project Contributors, see COPYING for license
from ipaserver.secrets.service import main
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Martin Nagy <mnagy@redhat.com>
# Based on ipa-server-install by Karl MacMillan <kmacmillan@mentalrootkit.com>
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors:
# Christian Heimes <cheimes@redhat.com>
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Ade Lee <alee@redhat.com>
#
# Copyright (C) 2014 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2008 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors: Jr Aquino <jr.aquino@citrix.com>
#
# Copyright (C) 2011 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
# Authors: Simo Sorce <ssorce@redhat.com>
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Nathaniel McCallum <npmccallum@redhat.com>
#
# Copyright (C) 2014 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
from __future__ import print_function
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
#
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Martin Kosek <mkosek@redhat.com>
#
# Copyright (C) 2011 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
#
# Copyright (C) 2007 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
#
# Copyright (C) 2007 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2012 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2013 Red Hat
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2013 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
# Simo Sorce <ssorce@redhat.com>
# Rob Crittenden <rcritten@redhat.com>
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
#
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3 -E
@PYTHONSHEBANG@
# Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2015 Red Hat
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
@PYTHONSHEBANG@
# Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2008-2010 Red Hat