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
|
${OBJS}: daemon.h
|
||||||
|
|
||||||
tags: *.c *.h
|
|
||||||
ctags -w *.c *.h
|
|
||||||
|
|
||||||
.SUFFIXES: .in
|
.SUFFIXES: .in
|
||||||
|
|
||||||
.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:
|
clean:
|
||||||
rm -f ${BINS} ${OBJS} ${RC_SCRIPT} tags
|
rm -f ${BINS} ${OBJS} ${RC_SCRIPT} tags
|
||||||
|
@ -6,7 +6,7 @@ die() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
: ${CATSITD_PIPE:=/var/run/catsitd.pipe}
|
: ${CATSITD_PIPE:='%%RUNDIR%%/catsitd.pipe'}
|
||||||
|
|
||||||
while getopts 'c:' opt; do
|
while getopts 'c:' opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
Loading…
Reference in New Issue
Block a user