summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-12 17:09:49 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-23 20:30:39 -0600
commit8c90042dee7cd0d7960c86b9fcfac5f1afec5784 (patch)
tree7e1a2fad4856ccb41312a1e79a53518187664eb3 /mk
parent9eb06745126de85d032d2f5d65ea713065f03c3d (diff)
downloadopenrc-8c90042dee7cd0d7960c86b9fcfac5f1afec5784.tar.gz
openrc-8c90042dee7cd0d7960c86b9fcfac5f1afec5784.tar.bz2
openrc-8c90042dee7cd0d7960c86b9fcfac5f1afec5784.tar.xz
make BINDIR and SBINDIR available to input files
BINDIR and SBINDIR can be set independently of PREFIX and may not be set to PREFIX/bin as scripts currently assume. Note from William Hubbs: This adds @BINDIR@ and @SBINDIR@ macros to the sed commands run to convert *.in files to the executable form. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/scripts.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/scripts.mk b/mk/scripts.mk
index 7a79821..2201199 100644
--- a/mk/scripts.mk
+++ b/mk/scripts.mk
@@ -12,7 +12,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:= $(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' ${_PKG_SED} ${_LCL_SED}
+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}
# Tweak our shell scripts
%.sh: %.sh.in