summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/Makefile.in13
-rw-r--r--zwgc/zwgc.1.in (renamed from zwgc/zwgc.1)13
2 files changed, 17 insertions, 9 deletions
diff --git a/zwgc/Makefile.in b/zwgc/Makefile.in
index 63c77c2..595ab99 100644
--- a/zwgc/Makefile.in
+++ b/zwgc/Makefile.in
@@ -24,6 +24,12 @@ YACC=@YACC@
INSTALL=@INSTALL@
INSTANTIATE=${srcdir}/instantiate
+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@
@@ -43,7 +49,7 @@ OBJS= port_dictionary.o pointer_dictionary.o unsigned_long_dictionary.o \
standard_ports.o xselect.o xmark.o xrevstack.o xerror.o \
new_string.o new_memory.o plus.o
-all: zwgc
+all: zwgc zwgc.1
zwgc: ${OBJS} ${LIBZEPHYR}
${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
@@ -84,6 +90,10 @@ y.tab.c y.tab.h: ${srcdir}/parser.y
.c.o:
${CC} -c ${ALL_CFLAGS} $<
+zwgc.1: ${srcdir}/zwgc.1.in Makefile
+ ${editman} ${srcdir}/$@.in > $@.tmp
+ mv $@.tmp $@
+
check:
install: zwgc
@@ -98,6 +108,7 @@ clean:
rm -f unsigned_long_dictionary.[ch] string_dictionary.[ch]
rm -f int_dictionary.[ch] char_stack.h string_stack.h xmode_stack.h
rm -f y.tab.[ch]
+ rm -f zwgc.1
${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h
zephyr.o: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h
diff --git a/zwgc/zwgc.1 b/zwgc/zwgc.1.in
index d2d597c..88a7ba4 100644
--- a/zwgc/zwgc.1
+++ b/zwgc/zwgc.1.in
@@ -913,10 +913,7 @@ used by reverseStack.
.SH COMMAND LINE
.I zwgc
is normally invoked from
-.IR /usr/athena/lib/init/login ,
-.IR $HOME/.xsession ,
-or
-.I /usr/athena/lib/init/xsession
+.IR $HOME/.xsession
in the foreground. When it has successfully set your location and
obtained subscriptions, it will put itself into the background (unless
the \-nofork option has been specified). At this point it is safe to
@@ -1013,9 +1010,9 @@ Other control messages may be implemented in the future.
.SH EXAMPLES
For an example of a description file, see
-.IR /usr/athena/share/zephyr/zwgc.desc .
+.IR @datadir@/zephyr/zwgc.desc .
For an example of X resources, see
-.IR /usr/athena/share/zephyr/zwgc_resources .
+.IR @datadir@/zephyr/zwgc_resources .
.SH BUGS
The X selection code can highlight the wrong portions of messages
@@ -1034,10 +1031,10 @@ which case you must get new tickets and then run ``zctl load
$HOME/.zwgc.desc
Default location of user's description file
.TP
-/usr/athena/share/zephyr/zwgc.desc
+@datadir@/zephyr/zwgc.desc
System-wide description file
.TP
-/usr/athena/share/zephyr/zwgc_resources
+@datadir@/zephyr/zwgc_resources
Default X application resources.
.TP
$ZEPHYR_VARS or $HOME/.zephyr.vars