Replace '/bin/bash' with '/usr/bin/env bash' in shebangs

This should hopefully help portability with BSDs.
This commit is contained in:
Jookia
2022-09-09 06:00:26 +10:00
committed by 宋文武
parent 982c44176e
commit b3fa848f0f
74 changed files with 74 additions and 74 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
xz -c -d "$1" | less -

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# If an error occurs, quit the script and inform the user. This ensures scripts
# like ./build-macos and ./build-macos-sdl2 etc. Don't continue on if Autotools isn't installed.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3

2
build
View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Do you like Clang/LLVM? Use this script to build DOSBox-X!
export CC=`which clang`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# make sure you use ". ./emsdk_env.sh"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw-hx-dos

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts

View File

@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
./cleanup

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
make clean 2>/dev/null
make distclean 2>/dev/null
find -name \*~ -delete

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
./sb2u.pl cp437_to_unicode <CP437.TXT >../../include/cp437_uni.h || exit 1
./sb2u.pl cp737_to_unicode <CP737.TXT >../../include/cp737_uni.h || exit 1
./sb2u.pl cp775_to_unicode <CP775.TXT >../../include/cp775_uni.h || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
for ext in c cpp h; do
find -iname \*.$ext | while read X; do dos2unix -- "$X" || exit 1; done
done

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-4.8
x=`which gcc-4.8`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-4.8
x=`which gcc-4.8 2>/dev/null`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-8.3
x=`which gcc-8.3 2>/dev/null`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-8.4
x=`which gcc-8.4 2>/dev/null`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-9.2
x=`which gcc-9.2 2>/dev/null`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-9.3
x=`which gcc-9.3 2>/dev/null`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
git remote add mainline svn://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk
git fetch mainline

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
git remote add github https://joncampbell123@github.com/joncampbell123/dosbox-x.git # might fail
git remote set-url github https://joncampbell123@github.com/joncampbell123/dosbox-x.git # might fail
git push github master

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
url="https://github.com/wcp16/dosbox-xe.git"
branch="dosbox-sdl2-upstream"
git remote add "$branch" "$url" || git remote set-url "$branch" "$url" || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# sort of like svn-update-all
curbranch=`git branch | grep '^\*' | sed -e 's/^\* //'`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# sort of like svn-update-all
make clean 2>/dev/null
make distclean 2>/dev/null

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ ! -x $(which flatpak-builder) ]]; then
echo Please install flatpak-builder

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
arch=`uname -m`
if [ -z "$arch" ]; then
echo Sorry, cannot identify architecture

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
curbranch=`git branch | grep \* | cut -d ' ' -f 2`
if [[ x"$curbranch" == x"master" || x"$curbranch" == x"develop" ]]; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
doit() {
git checkout master-win-ci || return 1

View File

@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
mikmod -o 16s -f 48000 -hq -p 0 -d wav,file="$1.wav" "$1"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Stupid multitrack audio hack for stupid Premiere.
# Turns a DOSBox-X multitrack AVI capture into several WAV files.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src="$1"
dst="$1.1080p.mp4"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src="$1"
dst="$1.1080p.mp4"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1
filename="DSXMENU.EXE"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1
filename="DSXMENU.EXE"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
make dox || exit 1
make dox-site-update || exit 1
make compat-site-update

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src/dosbox-x -defaultconf -defaultdir . -silent -c 'config -wcp dosbox-x.reference.conf' -c 'config -all -wcp dosbox-x.reference.full.conf' -c 'config -setup -wcp contrib/windows/installer/dosbox-x.reference.setup.conf' || exit 1
# Convert to Unix format if needed

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src/dosbox-x -defaultconf -defaultdir . -silent -c "config -ln \"English (United States)\" -wl contrib/translations/en/en_US.lng" || exit 1
exit 0

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ -z "$1" ]
then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/usr/bin/env bash -eu
# Copyright 2017 Glenn Randers-Pehrson
# Copyright 2016 Google Inc.
#

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SOURCES=()
MKSOURCES=""

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This is a script used by some Buildbot buildslaves to push the project
# through Clang's static analyzer and prepare the output to be uploaded

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ -z "$SDKDIR" ]; then
SDKDIR="/emsdk_portable"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
# amd64 Linux to NaCl.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ -z "$1" ] && [ -z "$NACL_SDK_ROOT" ]; then
echo "Usage: ./naclbuild ~/nacl/pepper_35"
echo "This will build SDL for Native Client, and testgles2.c as a demo"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
# x86 Linux to Raspberry Pi.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#### Configuration:
# The name of the executable. It is assumed

View File

@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
xterm -e /Users/alan/work/hidapi/testgui/TestGUI.app/Contents/MacOS/tg

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
set -e

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1