Template catsit script with RUNDIR
This commit is contained in:
parent
2a7467647e
commit
08783bd1cc
8
Makefile
8
Makefile
@ -32,13 +32,13 @@ catsitd: ${OBJS}
|
||||
|
||||
${OBJS}: daemon.h
|
||||
|
||||
tags: *.c *.h
|
||||
ctags -w *.c *.h
|
||||
|
||||
.SUFFIXES: .in
|
||||
|
||||
.in:
|
||||
sed -e 's|%%PREFIX%%|${PREFIX}|g' $< > $@
|
||||
sed -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%RUNDIR%%|${RUNDIR}|g' $< > $@
|
||||
|
||||
tags: *.c *.h
|
||||
ctags -w *.c *.h
|
||||
|
||||
clean:
|
||||
rm -f ${BINS} ${OBJS} ${RC_SCRIPT} tags
|
||||
|
@ -6,7 +6,7 @@ die() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
: ${CATSITD_PIPE:=/var/run/catsitd.pipe}
|
||||
: ${CATSITD_PIPE:='%%RUNDIR%%/catsitd.pipe'}
|
||||
|
||||
while getopts 'c:' opt; do
|
||||
case "${opt}" in
|
Loading…
Reference in New Issue
Block a user