summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-27 20:29:32 +0000
committerRoy Marples <roy@marples.name>2008-02-27 20:29:32 +0000
commitc2648ca5f539c450b27d35c7c0a3d41c6e193d8f (patch)
tree1de8b046bd8c1029165670c697eace4c89ece8f5 /sh
parent143570689bc93c68fa83c3eb56d622b707ec0e18 (diff)
downloadopenrc-c2648ca5f539c450b27d35c7c0a3d41c6e193d8f.tar.gz
openrc-c2648ca5f539c450b27d35c7c0a3d41c6e193d8f.tar.bz2
openrc-c2648ca5f539c450b27d35c7c0a3d41c6e193d8f.tar.xz
Makefile SH variable now tweaks the default shell used by our scripts.
Diffstat (limited to 'sh')
-rw-r--r--sh/Makefile9
-rw-r--r--sh/functions.sh.in (renamed from sh/functions.in)0
-rw-r--r--[-rwxr-xr-x]sh/gendepends.sh.in (renamed from sh/gendepends.sh)2
-rw-r--r--sh/rc-functions.sh.in (renamed from sh/rc-functions.in)0
-rw-r--r--[-rwxr-xr-x]sh/runscript.sh.in (renamed from sh/runscript.sh)2
5 files changed, 3 insertions, 10 deletions
diff --git a/sh/Makefile b/sh/Makefile
index 47f431f..364a59b 100644
--- a/sh/Makefile
+++ b/sh/Makefile
@@ -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
diff --git a/sh/functions.in b/sh/functions.sh.in
index effce67..effce67 100644
--- a/sh/functions.in
+++ b/sh/functions.sh.in
diff --git a/sh/gendepends.sh b/sh/gendepends.sh.in
index 712d29f..8e30a64 100755..100644
--- a/sh/gendepends.sh
+++ b/sh/gendepends.sh.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
# Shell wrapper to list our dependencies
# Copyright 2007-2008 Roy Marples <roy@marples.name>
diff --git a/sh/rc-functions.in b/sh/rc-functions.sh.in
index 2a57709..2a57709 100644
--- a/sh/rc-functions.in
+++ b/sh/rc-functions.sh.in
diff --git a/sh/runscript.sh b/sh/runscript.sh.in
index 63c780a..6b8c3db 100755..100644
--- a/sh/runscript.sh
+++ b/sh/runscript.sh.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
# Shell wrapper for runscript
# Copyright 2007-2008 Roy Marples <roy@marples.name>