ipa-scripts: fix all ipa command line scripts to operate with -I

Replacing -E flag to -I on all ipa python scripts except tests.

Signed-off-by: Alexandre Mulatinho <alex@mulatinho.net>
Related: https://pagure.io/freeipa/issue/7987
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Francois Cami <fcami@redhat.com>
This commit is contained in:
Alexandre Mulatinho 2019-07-18 13:07:58 -03:00 committed by Rob Crittenden
parent ffb4b624fc
commit a38a384359

View File

@ -1,6 +1,6 @@
# special handling of Python scripts with auto-generated shebang line # special handling of Python scripts with auto-generated shebang line
$(PYTHON_SHEBANG):%: %.in Makefile $(PYTHON_SHEBANG):%: %.in Makefile
$(AM_V_GEN)sed -e 's|^#!/usr/bin/python3.*|#!$(PYTHON) -E|g' $< > $@ $(AM_V_GEN)sed -e 's|^#!/usr/bin/python3.*|#!$(PYTHON) -I|g' $< > $@
$(AM_V_GEN)chmod +x $@ $(AM_V_GEN)chmod +x $@
.PHONY: python_scripts_sub .PHONY: python_scripts_sub