[gimp/wip/jtojnar/meson-dist: 1/3] tools: Use env in shebangs
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/jtojnar/meson-dist: 1/3] tools: Use env in shebangs
- Date: Fri, 25 Feb 2022 19:35:47 +0000 (UTC)
commit f5e912a8b979b026ee2f4951c4f2960e4c07e125
Author: Jan Tojnar <jtojnar gmail com>
Date: Fri Feb 25 16:07:37 2022 +0100
tools: Use env in shebangs
Having perl and bash in /usr/bin/ is less common than having them on PATH
(e.g. Nix does not have them there).
app/tests/create_test_env.sh | 2 +-
tools/gimp-mkenums | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/tests/create_test_env.sh b/app/tests/create_test_env.sh
index 4bf5bfd458..c66c3a0f84 100755
--- a/app/tests/create_test_env.sh
+++ b/app/tests/create_test_env.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copy tests resources
for dir in files gimpdir gimpdir-empty; do
diff --git a/tools/gimp-mkenums b/tools/gimp-mkenums
index f39103f567..e009f2f9fa 100755
--- a/tools/gimp-mkenums
+++ b/tools/gimp-mkenums
@@ -1,4 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
+
+use warnings;
# This is gimp-mkenums, a perl script based on glib-mkenums.
# It can be used just like glib-mkenums but offers one extra
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]