From 24deef9495ee24d8d3dbda4f5cbdb5598bca47f5 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 17 Jun 2019 12:32:43 +0200 Subject: [PATCH] Use #!/usr/bin/env ... shebangs --- repos/dde_linux/src/drivers/framebuffer/intel/gen_dummy | 2 +- .../lib/qt5/tools/lib_mk_file_generator/create_generated_inc | 2 +- tool/abi_symbols | 2 +- tool/autopilot | 2 +- tool/beautify | 2 +- tool/check_abi | 2 +- tool/create_builddir | 2 +- tool/create_iso | 2 +- tool/create_sdk | 2 +- tool/create_uboot | 2 +- tool/cxx_to_html | 2 +- tool/depot/build | 2 +- tool/depot/create | 2 +- tool/depot/dependencies | 2 +- tool/depot/download | 2 +- tool/depot/extract | 2 +- tool/depot/missing_ports | 2 +- tool/depot/mk/build_bin_archive | 2 +- tool/depot/mk/downloader | 2 +- tool/depot/mk/extract_api_archive | 2 +- tool/depot/mk/extract_pkg_archive | 2 +- tool/depot/mk/extract_raw_archive | 2 +- tool/depot/mk/extract_src_archive | 2 +- tool/depot/publish | 2 +- tool/depot/publish_current | 2 +- tool/depot/static_analyze | 2 +- tool/download_hashver | 2 +- tool/download_sigver | 2 +- tool/fix_include_ifndef | 2 +- tool/parse_cxx | 2 +- tool/ports/check_hash | 2 +- tool/ports/check_port_source | 2 +- tool/ports/current | 2 +- tool/ports/list | 2 +- tool/ports/prepare_port | 2 +- tool/ports/shortcut | 2 +- tool/ports/update_hash | 2 +- tool/run/power_on/qemu | 2 +- tool/run/run | 2 +- tool/tool_chain | 2 +- tool/tool_chain_qt5 | 2 +- 41 files changed, 41 insertions(+), 41 deletions(-) diff --git a/repos/dde_linux/src/drivers/framebuffer/intel/gen_dummy b/repos/dde_linux/src/drivers/framebuffer/intel/gen_dummy index 003757346..4561cdc3e 100755 --- a/repos/dde_linux/src/drivers/framebuffer/intel/gen_dummy +++ b/repos/dde_linux/src/drivers/framebuffer/intel/gen_dummy @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Private utility to generate a dummy function from a symbol name diff --git a/repos/libports/src/lib/qt5/tools/lib_mk_file_generator/create_generated_inc b/repos/libports/src/lib/qt5/tools/lib_mk_file_generator/create_generated_inc index f989f8c2d..b7c5693b3 100755 --- a/repos/libports/src/lib/qt5/tools/lib_mk_file_generator/create_generated_inc +++ b/repos/libports/src/lib/qt5/tools/lib_mk_file_generator/create_generated_inc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh LANG=C diff --git a/tool/abi_symbols b/tool/abi_symbols index 5e6534755..710d0cff2 100755 --- a/tool/abi_symbols +++ b/tool/abi_symbols @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Generate ABI symbol list for a shared library diff --git a/tool/autopilot b/tool/autopilot index 8200eb2c2..45a85c441 100755 --- a/tool/autopilot +++ b/tool/autopilot @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Automated exection of test cases diff --git a/tool/beautify b/tool/beautify index 6211c6bd3..dd5a2ce39 100755 --- a/tool/beautify +++ b/tool/beautify @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief C++-coding-style checking tool diff --git a/tool/check_abi b/tool/check_abi index 49d259224..a3ad15a68 100755 --- a/tool/check_abi +++ b/tool/check_abi @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Detect inconsistencies between a shared library and its ABI diff --git a/tool/create_builddir b/tool/create_builddir index 5233ebbea..29f3d0b6e 100755 --- a/tool/create_builddir +++ b/tool/create_builddir @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Prepare Genode build directory diff --git a/tool/create_iso b/tool/create_iso index bbb9d76d4..13c88e14e 100755 --- a/tool/create_iso +++ b/tool/create_iso @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief ISO image creation tool # \author Christian Helmuth diff --git a/tool/create_sdk b/tool/create_sdk index f0c6c3914..0fa1bf720 100755 --- a/tool/create_sdk +++ b/tool/create_sdk @@ -1,4 +1,4 @@ -#!/usr/bin/make --file +#!/usr/bin/env -S make -f # # \brief Create Genode software development kit diff --git a/tool/create_uboot b/tool/create_uboot index 24211da4b..5b50478de 100755 --- a/tool/create_uboot +++ b/tool/create_uboot @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for creating an MMC image with a platform specific U-Boot setup diff --git a/tool/cxx_to_html b/tool/cxx_to_html index 3bd5e2931..59bd324ef 100755 --- a/tool/cxx_to_html +++ b/tool/cxx_to_html @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Convert C++ code to html diff --git a/tool/depot/build b/tool/depot/build index df6a27d81..9982ff192 100755 --- a/tool/depot/build +++ b/tool/depot/build @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Build binary archives from source diff --git a/tool/depot/create b/tool/depot/create index 76e681d59..a53a83b65 100755 --- a/tool/depot/create +++ b/tool/depot/create @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling API/source/binary archives diff --git a/tool/depot/dependencies b/tool/depot/dependencies index 3e0955d06..9b80317ed 100755 --- a/tool/depot/dependencies +++ b/tool/depot/dependencies @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for determining the dependencies of depot content diff --git a/tool/depot/download b/tool/depot/download index 16468ad29..18eb1e2d6 100755 --- a/tool/depot/download +++ b/tool/depot/download @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Download packages diff --git a/tool/depot/extract b/tool/depot/extract index 08204a609..3e79c6dec 100755 --- a/tool/depot/extract +++ b/tool/depot/extract @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Extract API/source/binary archives from Genode source tree diff --git a/tool/depot/missing_ports b/tool/depot/missing_ports index f26f0bea8..2ff6d0b79 100755 --- a/tool/depot/missing_ports +++ b/tool/depot/missing_ports @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Print a list of missing ports for given API/source/raw archives diff --git a/tool/depot/mk/build_bin_archive b/tool/depot/mk/build_bin_archive index ee57cf742..c5954360e 100755 --- a/tool/depot/mk/build_bin_archive +++ b/tool/depot/mk/build_bin_archive @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for building a binary archive from source diff --git a/tool/depot/mk/downloader b/tool/depot/mk/downloader index 5db9e5bc2..365f43f89 100755 --- a/tool/depot/mk/downloader +++ b/tool/depot/mk/downloader @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Simulate the download of files by copying content from a directory diff --git a/tool/depot/mk/extract_api_archive b/tool/depot/mk/extract_api_archive index 248c2db11..d6163dfb8 100755 --- a/tool/depot/mk/extract_api_archive +++ b/tool/depot/mk/extract_api_archive @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling an API archive diff --git a/tool/depot/mk/extract_pkg_archive b/tool/depot/mk/extract_pkg_archive index 75a1b256c..1ee1c0092 100755 --- a/tool/depot/mk/extract_pkg_archive +++ b/tool/depot/mk/extract_pkg_archive @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling a package archive diff --git a/tool/depot/mk/extract_raw_archive b/tool/depot/mk/extract_raw_archive index 58cfd53f3..a8d7f6bca 100755 --- a/tool/depot/mk/extract_raw_archive +++ b/tool/depot/mk/extract_raw_archive @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling a raw-data archive diff --git a/tool/depot/mk/extract_src_archive b/tool/depot/mk/extract_src_archive index a06213176..34a1cb7ae 100755 --- a/tool/depot/mk/extract_src_archive +++ b/tool/depot/mk/extract_src_archive @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling a source archive diff --git a/tool/depot/publish b/tool/depot/publish index 90e6fa26c..7d2d0cc98 100755 --- a/tool/depot/publish +++ b/tool/depot/publish @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling a package archive diff --git a/tool/depot/publish_current b/tool/depot/publish_current index 8f4d75804..718ade38a 100755 --- a/tool/depot/publish_current +++ b/tool/depot/publish_current @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for assembling a package archive of the current version diff --git a/tool/depot/static_analyze b/tool/depot/static_analyze index a415d4dd2..69c2068e8 100755 --- a/tool/depot/static_analyze +++ b/tool/depot/static_analyze @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for invoking depot tool with static clang/llvm analyzer diff --git a/tool/download_hashver b/tool/download_hashver index 2d9fd1e99..6c46195d8 100755 --- a/tool/download_hashver +++ b/tool/download_hashver @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # \brief Hash verification tool # \author Stephan Müller diff --git a/tool/download_sigver b/tool/download_sigver index 859ba8705..aa48fed0b 100755 --- a/tool/download_sigver +++ b/tool/download_sigver @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # \brief Signature verification tool # \author Stephan Müller diff --git a/tool/fix_include_ifndef b/tool/fix_include_ifndef index f11765e7c..da12759d7 100755 --- a/tool/fix_include_ifndef +++ b/tool/fix_include_ifndef @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # read include file set include_pathname [lindex $argv 0] diff --git a/tool/parse_cxx b/tool/parse_cxx index c83e6cf06..5d06ce3e7 100755 --- a/tool/parse_cxx +++ b/tool/parse_cxx @@ -1,4 +1,4 @@ -#!/usr/bin/tclsh +#!/usr/bin/env tclsh # # \brief Regular-expression-based C++ parser diff --git a/tool/ports/check_hash b/tool/ports/check_hash index 2d863b165..c4fe3998c 100755 --- a/tool/ports/check_hash +++ b/tool/ports/check_hash @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for checking the hash file of a port diff --git a/tool/ports/check_port_source b/tool/ports/check_port_source index 8018438ce..26d458f5c 100755 --- a/tool/ports/check_port_source +++ b/tool/ports/check_port_source @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for checking remote 3rd-party sources diff --git a/tool/ports/current b/tool/ports/current index 9403d4c1b..ba292dace 100755 --- a/tool/ports/current +++ b/tool/ports/current @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for printing current contrib directory of port diff --git a/tool/ports/list b/tool/ports/list index 06b67698c..c8df424d0 100755 --- a/tool/ports/list +++ b/tool/ports/list @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for listing ports diff --git a/tool/ports/prepare_port b/tool/ports/prepare_port index d95f49d9b..3596c83bd 100755 --- a/tool/ports/prepare_port +++ b/tool/ports/prepare_port @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for preparing and updating ports diff --git a/tool/ports/shortcut b/tool/ports/shortcut index 70e08fa5e..f5451fbc2 100755 --- a/tool/ports/shortcut +++ b/tool/ports/shortcut @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for updating symbolic links to ports diff --git a/tool/ports/update_hash b/tool/ports/update_hash index 279942a1c..379a2ffca 100755 --- a/tool/ports/update_hash +++ b/tool/ports/update_hash @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for updating the hash file of a port diff --git a/tool/run/power_on/qemu b/tool/run/power_on/qemu index 69c619ef5..aceb51a64 100644 --- a/tool/run/power_on/qemu +++ b/tool/run/power_on/qemu @@ -1,4 +1,4 @@ -#!/usr/bin/expect +#!/usr/bin/env expect ## # Reset the target machine or rather run the scenario with Qemu diff --git a/tool/run/run b/tool/run/run index 7850ec056..7aef84ea9 100755 --- a/tool/run/run +++ b/tool/run/run @@ -1,4 +1,4 @@ -#!/usr/bin/expect +#!/usr/bin/env expect # # \brief Framework for running automated tests diff --git a/tool/tool_chain b/tool/tool_chain index 038147e7d..3372ec9b9 100755 --- a/tool/tool_chain +++ b/tool/tool_chain @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool-chain creation tool for the Genode OS Framework # \author Norman Feske diff --git a/tool/tool_chain_qt5 b/tool/tool_chain_qt5 index b08c3f1e3..fddb53ec6 100755 --- a/tool/tool_chain_qt5 +++ b/tool/tool_chain_qt5 @@ -1,4 +1,4 @@ -#!/usr/bin/make -f +#!/usr/bin/env -S make -f # # \brief Tool for preparing the Qt5 tool-chain for the Genode OS Framework # \author Christian Prochaska