[PATCH libvirt-glib 5/5] scripts: Fix sha-bang lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is particularly useful on operating systems that don't ship
Perl or Python as part of the base system (eg. FreeBSD) while still
working just as well as it did before on Linux.

While at it, make it explicit that our scripts are only going to
work with Python 2, add a couple of missing sha-bang lines and
tweak a couple more that just didn't look very nice.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 build-aux/check-symfile.pl    | 2 +-
 build-aux/check-symsorting.pl | 2 +-
 examples/config-demo.py       | 2 +-
 examples/conn-test.js         | 2 +-
 examples/conn-test.py         | 2 +-
 examples/event-test.py        | 1 +
 tap-driver.sh                 | 2 +-
 tap-test                      | 2 +-
 8 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/build-aux/check-symfile.pl b/build-aux/check-symfile.pl
index d59a213..4f88300 100755
--- a/build-aux/check-symfile.pl
+++ b/build-aux/check-symfile.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2012-2013 Red Hat, Inc.
 #
diff --git a/build-aux/check-symsorting.pl b/build-aux/check-symsorting.pl
index 31b6059..942097a 100755
--- a/build-aux/check-symsorting.pl
+++ b/build-aux/check-symsorting.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2012-2013 Red Hat, Inc.
 #
diff --git a/examples/config-demo.py b/examples/config-demo.py
index e92aa43..ab3bc77 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from gi.repository import LibvirtGConfig;
 
diff --git a/examples/conn-test.js b/examples/conn-test.js
index 7f9784b..17affba 100755
--- a/examples/conn-test.js
+++ b/examples/conn-test.js
@@ -1,4 +1,4 @@
-#!/usr/bin/gjs
+#!/usr/bin/env gjs
 
 const lv = imports.gi.LibvirtGObject;
 const gio = imports.gi.Gio;
diff --git a/examples/conn-test.py b/examples/conn-test.py
index deeaa26..e3b1b99 100644
--- a/examples/conn-test.py
+++ b/examples/conn-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from gi.repository import LibvirtGObject;
 from gi.repository import Gio;
diff --git a/examples/event-test.py b/examples/event-test.py
index 6ccc8f4..2b25e0a 100644
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python2
 
 from gi.repository import Gtk
 import libvirt
diff --git a/tap-driver.sh b/tap-driver.sh
index 6fef8f4..dc40648 100755
--- a/tap-driver.sh
+++ b/tap-driver.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
diff --git a/tap-test b/tap-test
index 481e333..4d5892c 100755
--- a/tap-test
+++ b/tap-test
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
 
 # run a GTest in tap mode. The test binary is passed as $1
 
-- 
2.13.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux