Makefile SH variable now tweaks the default shell used by our scripts.

This commit is contained in:
Roy Marples
2008-02-27 20:29:32 +00:00
parent 143570689b
commit c2648ca5f5
14 changed files with 22 additions and 23 deletions

View File

@@ -1,7 +1,5 @@
DIR= ${RC_LIB}/sh
SRCS= functions.in rc-functions.in
OBJS= ${SRCS:.in=.sh}
INC= init-common-post.sh rc-mount.sh ${OBJS}
INC= init-common-post.sh rc-mount.sh functions.sh rc-functions.sh
BIN= gendepends.sh net.sh runscript.sh
INSTALLAFTER= _installafter
@@ -12,11 +10,6 @@ include ${MK}/os.mk
include Makefile.${SUBOS}
include ${MK}/scripts.mk
# Ensure that the lib name is correct
.SUFFIXES: .in .sh
.in.sh:
sed -e 's:/lib/:/${LIBNAME}/:g' $< > $@
_installafter:
${INSTALL} -d ${DESTDIR}/etc/init.d
@# Provide an init script for the loopback interface

2
sh/gendepends.sh → sh/gendepends.sh.in Executable file → Normal file
View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!@SHELL@
# Shell wrapper to list our dependencies
# Copyright 2007-2008 Roy Marples <roy@marples.name>

2
sh/runscript.sh → sh/runscript.sh.in Executable file → Normal file
View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!@SHELL@
# Shell wrapper for runscript
# Copyright 2007-2008 Roy Marples <roy@marples.name>