aboutsummaryrefslogtreecommitdiff
path: root/etc.BSD
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 /etc.BSD
parent143570689bc93c68fa83c3eb56d622b707ec0e18 (diff)
Makefile SH variable now tweaks the default shell used by our scripts.
Diffstat (limited to 'etc.BSD')
-rw-r--r--etc.BSD/Makefile8
-rw-r--r--etc.BSD/rc.in2
-rw-r--r--etc.BSD/rc.shutdown.in2
3 files changed, 4 insertions, 8 deletions
diff --git a/etc.BSD/Makefile b/etc.BSD/Makefile
index 083823e4..ec3153cd 100644
--- a/etc.BSD/Makefile
+++ b/etc.BSD/Makefile
@@ -1,8 +1,5 @@
DIR= /etc
-SRCS= rc.in rc.shutdown.in
-OBJS= ${SRCS:.in=}
-CONF= ${OBJS}
-
+CONF= ${CONTENTS}
MK= ../mk
include ${MK}/scripts.mk
@@ -10,5 +7,4 @@ include Makefile.${OS}
.SUFFIXES: .in
.in:
- sed -e s':@TERM@:${DEFTERM}:' $< > $@
-
+ sed -e 's:@SHELL@:${SHELL}:' -e 's:@TERM@:${DEFTERM}:' $< > $@
diff --git a/etc.BSD/rc.in b/etc.BSD/rc.in
index 255ff72e..aab7cbb8 100644
--- a/etc.BSD/rc.in
+++ b/etc.BSD/rc.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
diff --git a/etc.BSD/rc.shutdown.in b/etc.BSD/rc.shutdown.in
index 48abe703..e26e8468 100644
--- a/etc.BSD/rc.shutdown.in
+++ b/etc.BSD/rc.shutdown.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.