Skip to content

Commit b3fa848

Browse files
Jookia宋文武
authored and
宋文武
committed
Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
1 parent 982c441 commit b3fa848

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+74
-74
lines changed

NOTES/Intel DIV behavior/xzview.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
xz -c -d "$1" | less -
33

autogen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# If an error occurs, quit the script and inform the user. This ensures scripts
44
# like ./build-macos and ./build-macos-sdl2 etc. Don't continue on if Autotools isn't installed.

avi_zmbv_to_720p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
file="$1"
33
bitrate=15000000
44
aspect_ratio=4:3

build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-debug

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# allow 32-bit on 64-bit (x86) builds
44
if [ "$1" == "32" ]; then

build-debug-g3

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# allow 32-bit on 64-bit (x86) builds
44
if [ "$1" == "32" ]; then

build-debug-g3-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# allow 32-bit on 64-bit (x86) builds
44
if [ "$1" == "32" ]; then

build-debug-gcc-prof

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# allow 32-bit on 64-bit (x86) builds
44
if [ "$1" == "32" ]; then

build-debug-macos

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-debug-macos-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-debug-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# allow 32-bit on 64-bit (x86) builds
44
if [ "$1" == "32" ]; then

build-debug-with-clang

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Do you like Clang/LLVM? Use this script to build DOSBox-X!
44
export CC=`which clang`

build-emscripten-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# make sure you use ". ./emsdk_env.sh"
44

build-macos

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-macos-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw-hx-dos

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw-lowend

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw-lowend-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-mingw-sdldraw

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-riscos

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

build-scripts/macosx/make-macosx-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Setup:
44
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x

build-scripts/mingw/make-mingw-hx-dos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Setup:
44
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw-hx-dos

build-scripts/mingw/make-mingw.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Setup:
44
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw

build-sdl2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# I'm sick and tired of all the churn the three versions of autoconf
44
# are causing in this repo. Stop committing the configure scripts

cleantree

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
./cleanup

cleanup

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
make clean 2>/dev/null
33
make distclean 2>/dev/null
44
find -name \*~ -delete

contrib/mappings/regenerate.sh

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

dos2unix.sh

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

env-gcc-4.8-rpi.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-4.8
44
x=`which gcc-4.8`

env-gcc-4.8.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-4.8
44
x=`which gcc-4.8 2>/dev/null`

env-gcc-8.3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-8.3
44
x=`which gcc-8.3 2>/dev/null`

env-gcc-8.4.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-8.4
44
x=`which gcc-8.4 2>/dev/null`

env-gcc-9.2.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-9.2
44
x=`which gcc-9.2 2>/dev/null`

env-gcc-9.3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Look for GCC-9.3
44
x=`which gcc-9.3 2>/dev/null`

git-pull-mainline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
git remote add mainline svn://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk
33
git fetch mainline
44

git-push-to-github.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
git remote add github https://joncampbell123@github.com/joncampbell123/dosbox-x.git # might fail
33
git remote set-url github https://joncampbell123@github.com/joncampbell123/dosbox-x.git # might fail
44
git push github master

git-setup-sdl2-work.sh

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

git-update-all

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# sort of like svn-update-all
33

44
curbranch=`git branch | grep '^\*' | sed -e 's/^\* //'`

git-update-all-wo-push

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# sort of like svn-update-all
33
make clean 2>/dev/null
44
make distclean 2>/dev/null

make-flatpak.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [[ ! -x $(which flatpak-builder) ]]; then
44
echo Please install flatpak-builder

make-rpm.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
arch=`uname -m`
33
if [ -z "$arch" ]; then
44
echo Sorry, cannot identify architecture

merge-dev-to-master.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
curbranch=`git branch | grep \* | cut -d ' ' -f 2`
33

44
if [[ x"$curbranch" == x"master" || x"$curbranch" == x"develop" ]]; then

merge-to-win-ci

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
doit() {
44
git checkout master-win-ci || return 1

mod2wav.sh

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

mtavi2wav.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Stupid multitrack audio hack for stupid Premiere.
44
# Turns a DOSBox-X multitrack AVI capture into several WAV files.

mts_to_1080p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
file="$1"
33
bitrate=15000000
44
aspect_ratio=4:3

mts_to_2160p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
file="$1"
33
bitrate=15000000
44
aspect_ratio=4:3

mts_to_720p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
file="$1"
33
bitrate=15000000
44
aspect_ratio=4:3

scaleup-4x3-mp4-to-1080p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
src="$1"
33
dst="$1.1080p.mp4"
44

scaleup-4x3-mts-to-1080p.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
src="$1"
33
dst="$1.1080p.mp4"
44

src/builtin/update-dsxmenu-pc98.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1
33

44
filename="DSXMENU.EXE"

src/builtin/update-dsxmenu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1
33

44
filename="DSXMENU.EXE"

update-docs-site

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
make dox || exit 1
33
make dox-site-update || exit 1
44
make compat-site-update

update-dosbox-x-reference-conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
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
33

44
# Convert to Unix format if needed

update-en-translation

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

44
exit 0

update-version-number

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [ -z "$1" ]
44
then

vs/freetype/build-dosbox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
rm -Rfv linux-host || exit 1
33
mkdir -p linux-host || exit 1
44

vs/libpng/build-dosbox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
rm -Rfv linux-host || exit 1
33
mkdir -p linux-host || exit 1
44

vs/libpng/contrib/oss-fuzz/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -eu
1+
#!/usr/bin/env bash -eu
22
# Copyright 2017 Glenn Randers-Pehrson
33
# Copyright 2016 Google Inc.
44
#

vs/sdl/build-dosbox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
rm -Rfv linux-host || exit 1
33
mkdir -p linux-host || exit 1
44

vs/sdl2/build-dosbox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
rm -Rfv linux-host || exit 1
33
mkdir -p linux-host || exit 1
44

vs/sdl2/build-scripts/androidbuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
SOURCES=()
44
MKSOURCES=""

vs/sdl2/build-scripts/checker-buildbot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This is a script used by some Buildbot buildslaves to push the project
44
# through Clang's static analyzer and prepare the output to be uploaded

vs/sdl2/build-scripts/emscripten-buildbot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [ -z "$SDKDIR" ]; then
44
SDKDIR="/emsdk_portable"

vs/sdl2/build-scripts/nacl-buildbot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
44
# amd64 Linux to NaCl.

0 commit comments

Comments
 (0)