standardize the default shell

I do not know of a need to have the default shell be a build-time
configurable setting. All *nix systems I am aware of have /bin/sh as a
default posix compatible shell.
If some systems running OpenRC do not make that assumption about
/bin/sh, I will consider bringing this back, so feel free to open an
issue.
This commit is contained in:
William Hubbs 2018-12-07 13:41:06 -06:00
parent d95425b08a
commit 5427783fdf
18 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -19,7 +19,7 @@ _PKG_SED:= $(shell ${_PKG_SED_SH})
_LCL_SED_SH= if test "${PREFIX}" = "${LOCAL_PREFIX}"; then echo "-e 's:@LOCAL_PREFIX@::g'"; else echo "-e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g'"; fi _LCL_SED_SH= if test "${PREFIX}" = "${LOCAL_PREFIX}"; then echo "-e 's:@LOCAL_PREFIX@::g'"; else echo "-e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g'"; fi
_LCL_SED:= $(shell ${_LCL_SED_SH}) _LCL_SED:= $(shell ${_LCL_SED_SH})
SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@BINDIR@:${BINDIR}:g' -e 's:@SBINDIR@:${SBINDIR}:g' ${_PKG_SED} ${_LCL_SED} SED_REPLACE= -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@BINDIR@:${BINDIR}:g' -e 's:@SBINDIR@:${SBINDIR}:g' ${_PKG_SED} ${_LCL_SED}
# Tweak our shell scripts # Tweak our shell scripts
%.sh: %.sh.in %.sh: %.sh.in

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
option_arg= option_arg=
poweroff_arg= poweroff_arg=

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
option_arg= option_arg=
poweroff_arg= poweroff_arg=

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2015 The OpenRC Authors. # Copyright (c) 2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
option_arg= option_arg=
poweroff_arg= poweroff_arg=

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
shutdown_arg= shutdown_arg=
while getopts :akrhPHfFnct: opt; do while getopts :akrhPHfFnct: opt; do

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# This is a reimplementation of the systemd binfmt.d code to register # This is a reimplementation of the systemd binfmt.d code to register
# misc binary formats with the kernel. # misc binary formats with the kernel.
# #

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# This is run by the kernel after the last task is removed from a # This is run by the kernel after the last task is removed from a
# control group in the openrc hierarchy. # control group in the openrc hierarchy.

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Shell wrapper to list our dependencies # Shell wrapper to list our dependencies
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 1999-2007 Gentoo Foundation # Copyright (c) 1999-2007 Gentoo Foundation
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Copyright (c) 2012-2015 The OpenRC Authors. # Copyright (c) 2012-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and # See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS # https://github.com/OpenRC/openrc/blob/master/AUTHORS

View File

@ -1,4 +1,4 @@
#!@SHELL@ #!/bin/sh
# Shell wrapper for openrc-run # Shell wrapper for openrc-run
# Copyright (c) 2007-2015 The OpenRC Authors. # Copyright (c) 2007-2015 The OpenRC Authors.