Skip to content

Commit

Permalink
Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
Browse files Browse the repository at this point in the history
This should hopefully help portability with BSDs.
  • Loading branch information
Jookia authored and 宋文武 committed Dec 12, 2022
1 parent 982c441 commit b3fa848
Show file tree
Hide file tree
Showing 74 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion NOTES/Intel DIV behavior/xzview.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
xz -c -d "$1" | less -

2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion avi_zmbv_to_720p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3
Expand Down
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-debug-g3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-debug-g3-sdl2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-debug-gcc-prof
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-debug-macos
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-debug-macos-sdl2
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-debug-sdl2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# allow 32-bit on 64-bit (x86) builds
if [ "$1" == "32" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-debug-with-clang
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion build-emscripten-sdl2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

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

Expand Down
2 changes: 1 addition & 1 deletion build-macos
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-macos-sdl2
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw-hx-dos
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw-lowend
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw-lowend-sdl2
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw-sdl2
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-mingw-sdldraw
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-riscos
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/macosx/make-macosx-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/mingw/make-mingw-hx-dos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw-hx-dos
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/mingw/make-mingw.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup:
# git clone https://github.com/joncampbell123/dosbox-x dosbox-x-mingw
Expand Down
2 changes: 1 addition & 1 deletion build-sdl2
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion cleantree
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
./cleanup
2 changes: 1 addition & 1 deletion cleanup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
make clean 2>/dev/null
make distclean 2>/dev/null
find -name \*~ -delete
Expand Down
2 changes: 1 addition & 1 deletion contrib/mappings/regenerate.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dos2unix.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-4.8-rpi.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-4.8
x=`which gcc-4.8`
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-4.8.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-4.8
x=`which gcc-4.8 2>/dev/null`
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-8.3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-8.3
x=`which gcc-8.3 2>/dev/null`
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-8.4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-8.4
x=`which gcc-8.4 2>/dev/null`
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-9.2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-9.2
x=`which gcc-9.2 2>/dev/null`
Expand Down
2 changes: 1 addition & 1 deletion env-gcc-9.3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Look for GCC-9.3
x=`which gcc-9.3 2>/dev/null`
Expand Down
2 changes: 1 addition & 1 deletion git-pull-mainline.sh
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion git-push-to-github.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
git remote add github https://[email protected]/joncampbell123/dosbox-x.git # might fail
git remote set-url github https://[email protected]/joncampbell123/dosbox-x.git # might fail
git push github master
Expand Down
2 changes: 1 addition & 1 deletion git-setup-sdl2-work.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion git-update-all
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# sort of like svn-update-all

curbranch=`git branch | grep '^\*' | sed -e 's/^\* //'`
Expand Down
2 changes: 1 addition & 1 deletion git-update-all-wo-push
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion make-flatpak.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [[ ! -x $(which flatpak-builder) ]]; then
echo Please install flatpak-builder
Expand Down
2 changes: 1 addition & 1 deletion make-rpm.sh.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
arch=`uname -m`
if [ -z "$arch" ]; then
echo Sorry, cannot identify architecture
Expand Down
2 changes: 1 addition & 1 deletion merge-dev-to-master.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion merge-to-win-ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

doit() {
git checkout master-win-ci || return 1
Expand Down
2 changes: 1 addition & 1 deletion mod2wav.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
mikmod -o 16s -f 48000 -hq -p 0 -d wav,file="$1.wav" "$1"
2 changes: 1 addition & 1 deletion mtavi2wav.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mts_to_1080p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3
Expand Down
2 changes: 1 addition & 1 deletion mts_to_2160p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3
Expand Down
2 changes: 1 addition & 1 deletion mts_to_720p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
bitrate=15000000
aspect_ratio=4:3
Expand Down
2 changes: 1 addition & 1 deletion scaleup-4x3-mp4-to-1080p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src="$1"
dst="$1.1080p.mp4"

Expand Down
2 changes: 1 addition & 1 deletion scaleup-4x3-mts-to-1080p.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
src="$1"
dst="$1.1080p.mp4"

Expand Down
2 changes: 1 addition & 1 deletion src/builtin/update-dsxmenu-pc98.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1

filename="DSXMENU.EXE"
Expand Down
2 changes: 1 addition & 1 deletion src/builtin/update-dsxmenu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
(cd /usr/src/doslib/tool/dsxmenu && ./make.sh) || exit 1

filename="DSXMENU.EXE"
Expand Down
2 changes: 1 addition & 1 deletion update-docs-site
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
make dox || exit 1
make dox-site-update || exit 1
make compat-site-update
Expand Down
2 changes: 1 addition & 1 deletion update-dosbox-x-reference-conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion update-en-translation
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion update-version-number
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$1" ]
then
Expand Down
2 changes: 1 addition & 1 deletion vs/freetype/build-dosbox.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

Expand Down
2 changes: 1 addition & 1 deletion vs/libpng/build-dosbox.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

Expand Down
2 changes: 1 addition & 1 deletion vs/libpng/contrib/oss-fuzz/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/usr/bin/env bash -eu
# Copyright 2017 Glenn Randers-Pehrson
# Copyright 2016 Google Inc.
#
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl/build-dosbox.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/build-dosbox.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1

Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/build-scripts/androidbuild.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

SOURCES=()
MKSOURCES=""
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/build-scripts/checker-buildbot.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/build-scripts/emscripten-buildbot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$SDKDIR" ]; then
SDKDIR="/emsdk_portable"
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/build-scripts/nacl-buildbot.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading

0 comments on commit b3fa848

Please sign in to comment.