summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@hundeboll.net>2014-10-30 11:43:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-12 15:38:29 +0000
commitc0dafd310156f8765fd06bf3076acddd6f4db270 (patch)
tree9af4d744fcdab165971bc6b5705f3d0d40095df3 /scripts
parent3e068831a17aca73703054aebb07eaabcb5d3dcf (diff)
downloadpoky-c0dafd310156f8765fd06bf3076acddd6f4db270.tar.gz
scripts: use '/usr/bin/env' in shebangs with python
To support yocto on systems with python3 as default version, scripts should use /usr/bin/env python in the shebang, as this allows the use of a fake env to mimic python2 as default version. This patch simply replaces occurrences of #!/usr/bin/python with #!/usr/bin/env python and was done with this oneliner: git grep -lE '^#!/usr/bin/python' | xargs \ sed -i 's|/usr/bin/python|/usr/bin/env python|' (From OE-Core rev: 6d3de22a19657a413e01d7bb5fd74d16c00dc696) Signed-off-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/conf.py2
-rw-r--r--scripts/lib/wic/creator.py2
-rw-r--r--scripts/lib/wic/imager/baseimager.py2
-rw-r--r--scripts/lib/wic/kickstart/__init__.py2
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/micboot.py2
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/micpartition.py2
-rw-r--r--scripts/lib/wic/msger.py2
-rw-r--r--scripts/lib/wic/plugin.py2
-rw-r--r--scripts/lib/wic/pluginbase.py2
-rw-r--r--scripts/lib/wic/utils/errors.py2
-rw-r--r--scripts/lib/wic/utils/fs_related.py2
-rw-r--r--scripts/lib/wic/utils/misc.py2
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py2
-rw-r--r--scripts/lib/wic/utils/runner.py2
-rwxr-xr-xscripts/pybootchartgui/pybootchartgui.py2
15 files changed, 15 insertions, 15 deletions
diff --git a/scripts/lib/wic/conf.py b/scripts/lib/wic/conf.py
index d5419f8e94..be34355ce4 100644
--- a/scripts/lib/wic/conf.py
+++ b/scripts/lib/wic/conf.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2011 Intel, Inc. 3# Copyright (c) 2011 Intel, Inc.
4# 4#
diff --git a/scripts/lib/wic/creator.py b/scripts/lib/wic/creator.py
index a4b19ac6e0..2219377b38 100644
--- a/scripts/lib/wic/creator.py
+++ b/scripts/lib/wic/creator.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2011 Intel, Inc. 3# Copyright (c) 2011 Intel, Inc.
4# 4#
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py
index 5bcd2f7529..e8305272a2 100644
--- a/scripts/lib/wic/imager/baseimager.py
+++ b/scripts/lib/wic/imager/baseimager.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2007 Red Hat Inc. 3# Copyright (c) 2007 Red Hat Inc.
4# Copyright (c) 2009, 2010, 2011 Intel, Inc. 4# Copyright (c) 2009, 2010, 2011 Intel, Inc.
diff --git a/scripts/lib/wic/kickstart/__init__.py b/scripts/lib/wic/kickstart/__init__.py
index 4f5b778b5d..600098293a 100644
--- a/scripts/lib/wic/kickstart/__init__.py
+++ b/scripts/lib/wic/kickstart/__init__.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2007 Red Hat, Inc. 3# Copyright (c) 2007 Red Hat, Inc.
4# Copyright (c) 2009, 2010, 2011 Intel, Inc. 4# Copyright (c) 2009, 2010, 2011 Intel, Inc.
diff --git a/scripts/lib/wic/kickstart/custom_commands/micboot.py b/scripts/lib/wic/kickstart/custom_commands/micboot.py
index 66d1678aa7..d162142506 100644
--- a/scripts/lib/wic/kickstart/custom_commands/micboot.py
+++ b/scripts/lib/wic/kickstart/custom_commands/micboot.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2008, 2009, 2010 Intel, Inc. 3# Copyright (c) 2008, 2009, 2010 Intel, Inc.
4# 4#
diff --git a/scripts/lib/wic/kickstart/custom_commands/micpartition.py b/scripts/lib/wic/kickstart/custom_commands/micpartition.py
index 59a87fb486..43d04f1294 100644
--- a/scripts/lib/wic/kickstart/custom_commands/micpartition.py
+++ b/scripts/lib/wic/kickstart/custom_commands/micpartition.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Marko Saukko <marko.saukko@cybercom.com> 3# Marko Saukko <marko.saukko@cybercom.com>
4# 4#
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py
index 9afc85be93..9f557e7b9a 100644
--- a/scripts/lib/wic/msger.py
+++ b/scripts/lib/wic/msger.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# vim: ai ts=4 sts=4 et sw=4 2# vim: ai ts=4 sts=4 et sw=4
3# 3#
4# Copyright (c) 2009, 2010, 2011 Intel, Inc. 4# Copyright (c) 2009, 2010, 2011 Intel, Inc.
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py
index 61c5859bac..41a80175ca 100644
--- a/scripts/lib/wic/plugin.py
+++ b/scripts/lib/wic/plugin.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2011 Intel, Inc. 3# Copyright (c) 2011 Intel, Inc.
4# 4#
diff --git a/scripts/lib/wic/pluginbase.py b/scripts/lib/wic/pluginbase.py
index b8b3a46354..e3de9bacb8 100644
--- a/scripts/lib/wic/pluginbase.py
+++ b/scripts/lib/wic/pluginbase.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2011 Intel, Inc. 3# Copyright (c) 2011 Intel, Inc.
4# 4#
diff --git a/scripts/lib/wic/utils/errors.py b/scripts/lib/wic/utils/errors.py
index 86e230ac19..9410311875 100644
--- a/scripts/lib/wic/utils/errors.py
+++ b/scripts/lib/wic/utils/errors.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2007 Red Hat, Inc. 3# Copyright (c) 2007 Red Hat, Inc.
4# Copyright (c) 2011 Intel, Inc. 4# Copyright (c) 2011 Intel, Inc.
diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py
index 79cc1d52a7..ea9f85c60f 100644
--- a/scripts/lib/wic/utils/fs_related.py
+++ b/scripts/lib/wic/utils/fs_related.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2007, Red Hat, Inc. 3# Copyright (c) 2007, Red Hat, Inc.
4# Copyright (c) 2009, 2010, 2011 Intel, Inc. 4# Copyright (c) 2009, 2010, 2011 Intel, Inc.
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 194b88f691..6e56316608 100644
--- a/scripts/lib/wic/utils/misc.py
+++ b/scripts/lib/wic/utils/misc.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2010, 2011 Intel Inc. 3# Copyright (c) 2010, 2011 Intel Inc.
4# 4#
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 791f488cd6..fb95cc790e 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2009, 2010, 2011 Intel, Inc. 3# Copyright (c) 2009, 2010, 2011 Intel, Inc.
4# Copyright (c) 2007, 2008 Red Hat, Inc. 4# Copyright (c) 2007, 2008 Red Hat, Inc.
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py
index e740dad253..2ae9f417c5 100644
--- a/scripts/lib/wic/utils/runner.py
+++ b/scripts/lib/wic/utils/runner.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2011 Intel, Inc. 3# Copyright (c) 2011 Intel, Inc.
4# 4#
diff --git a/scripts/pybootchartgui/pybootchartgui.py b/scripts/pybootchartgui/pybootchartgui.py
index 947ce10338..7ce1a5be40 100755
--- a/scripts/pybootchartgui/pybootchartgui.py
+++ b/scripts/pybootchartgui/pybootchartgui.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python 1#!/usr/bin/env python
2# 2#
3# This file is part of pybootchartgui. 3# This file is part of pybootchartgui.
4 4