diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-02-21 19:25:18 -0500 |
---|---|---|
committer | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-02-21 22:07:33 -0500 |
commit | 76cd4baec8f5c266c8047cc88981f84701e1fc7a (patch) | |
tree | fd0d7216e88b8abc34a7adcc219c1d756d317ad7 /clients/zctl | |
parent | 651d606e5c60d472c56ff6ef03f7779e957573a8 (diff) |
Substitute paths into man pages
Generate the man pages for zwgc, zctl, zhm, and zephyrd at build time,
so they can refer to the paths actually used instead of whatever was
used on Athena in the 1980's.
Diffstat (limited to 'clients/zctl')
-rw-r--r-- | clients/zctl/Makefile.in | 13 | ||||
-rw-r--r-- | clients/zctl/zctl.1.in (renamed from clients/zctl/zctl.1) | 4 |
2 files changed, 14 insertions, 3 deletions
diff --git a/clients/zctl/Makefile.in b/clients/zctl/Makefile.in index 105fe10..fa8d4ae 100644 --- a/clients/zctl/Makefile.in +++ b/clients/zctl/Makefile.in @@ -22,6 +22,12 @@ LIBTOOL=@LIBTOOL@ CC=@CC@ INSTALL=@INSTALL@ +editman = sed \ + -e 's|@datadir[@]|${datadir}|g' \ + -e 's|@sysconfdir[@]|${sysconfdir}|g' \ + -e 's|@sbindir[@]|${sbindir}|g' \ + -e 's|@lsbindir[@]|${lsbindir}|g' + LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la CPPFLAGS=@CPPFLAGS@ CFLAGS=@CFLAGS@ @@ -32,7 +38,7 @@ LIBS=${LIBZEPHYR} @SS_LIBS@ @LIBS@ -lcom_err SS_OBJS=zctl_cmds.o OBJS= zctl.o @SS_OBJS@ -all: zctl +all: zctl zctl.1 zctl: ${OBJS} ${LIBZEPHYR} ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} @@ -43,6 +49,10 @@ zctl_cmds.c: zctl_cmds.ct .c.o: ${CC} -c ${ALL_CFLAGS} $< +zctl.1: ${srcdir}/zctl.1.in Makefile + ${editman} ${srcdir}/$@.in > $@.tmp + mv $@.tmp $@ + check: install: zctl @@ -52,6 +62,7 @@ install: zctl clean: ${LIBTOOL} --mode=clean rm -f zctl rm -f ${OBJS} zctl_cmds.c + rm -f zctl.1 ${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h diff --git a/clients/zctl/zctl.1 b/clients/zctl/zctl.1.in index c94bbf9..d3835d3 100644 --- a/clients/zctl/zctl.1 +++ b/clients/zctl/zctl.1.in @@ -143,7 +143,7 @@ Any variable settings you make will be stored in \fI$HOME/.zephyr.vars\fR .B show \fIvar\fR [ \fIvar\fR \ ... ] Show the value of the specified Zephyr variables. If a variable is not defined in the user's own variables file, the system variables file -(\fI/etc/athena/zephyr.vars\fR) is searched for a default value. +(\fI@sysconfdir@/zephyr/zephyr.vars\fR) is searched for a default value. .TP .B subscribe \fIclass instance\fR [ \fIrecipient\fR ] Subscribe to \fIclass, instance, recipient\fR, but don't add this triplet to @@ -298,7 +298,7 @@ $HOME/.zephyr.subs .br $ZEPHYR_VARS or $HOME/.zephyr.vars .br -/etc/athena/zephyr.vars +@sysconfdir@/zephyr/zephyr.vars .SH AUTHOR .PP Robert S. French (MIT-Project Athena) |