actually set the vars ok
This commit is contained in:
parent
f2c19a6996
commit
6ef5f62d75
7
config.mk.sh
Normal file
7
config.mk.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
# make.sh config
|
||||
PREFIX=${PREFIX:-/}
|
||||
USR=${USR:-"${PREFIX}usr/local"}
|
||||
|
||||
BINDIR=${BINDIR:-"${DESTDIR}${USR}/bin"}
|
||||
LOGDIR=${LOGDIR:-"/tmp/userrc"}
|
||||
CONFIG=${CONFIG:-"/etc/userrc.conf"}
|
4
make.sh
4
make.sh
|
@ -7,7 +7,7 @@ set_vars() {
|
|||
|
||||
sed -r \
|
||||
-e "s%@CONFIG@%${CONFIG}%" \
|
||||
-r "s%@LOGDIR@%${LOGDIR}%"
|
||||
-e "s%@LOGDIR@%${LOGDIR}%"
|
||||
}
|
||||
|
||||
do_tell() {
|
||||
|
@ -17,7 +17,7 @@ do_tell() {
|
|||
|
||||
# Targets
|
||||
target_userrc() {
|
||||
declare target='userrc'
|
||||
target='userrc'
|
||||
|
||||
printf '%s\n' "Building $target..."
|
||||
set_vars < "$target".in > "$target"
|
||||
|
|
Loading…
Reference in New Issue
Block a user