[git-cola] fix #!/usr/bin/env/python to #!/usr/bin/env/python3 everywhere
Kevin Kofler
kkofler at fedoraproject.org
Mon Dec 15 02:56:05 UTC 2014
commit 846c54ab9315452b2e092e187aeab02bfc4a0a40
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Mon Dec 15 03:56:15 2014 +0100
fix #!/usr/bin/env/python to #!/usr/bin/env/python3 everywhere
git-cola.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/git-cola.spec b/git-cola.spec
index a98cce0..2a020b0 100644
--- a/git-cola.spec
+++ b/git-cola.spec
@@ -43,6 +43,10 @@ git-cola is a powerful git GUI with a slick and intuitive user interface.
%prep
%setup -q
+%if 0%{?python3}
+# fix #!/usr/bin/env/python to #!/usr/bin/env/python3 everywhere
+find . -type f -exec sh -c "head {} -n 1 | grep ^#\!\ \*/usr/bin/env\ python >/dev/null && sed -i -e sX^#\!\ \*/usr/bin/env\ python\ \*"\\\$"X#\!/usr/bin/env\ python3Xg {}" \;
+%endif
%build
export PYTHON="%{__python}"
More information about the scm-commits
mailing list