# with this program; if not, consult the Free Software Foundation's
# website at www.fsf.org, or the GNU Project website at www.gnu.org.
+us= chiark-utils-bin
+
include ../settings.make
RWBUFFER_SIZE_MB=16
DAEMONS= trivsoundd
MAN1PAGES= readbuffer.1 writebuffer.1 with-lock-ex.1
MAN8PAGES= trivsoundd.8 really.8
+BUILTTXTDOCS= watershed.txt
+TXTDOCS= $(BUILTTXTDOCS)
-TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS)
+TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS) $(BUILTTXTDOCS)
all: $(TARGETS)
watershed: watershed.o
$(CC) -o $@ $< -lnettle -lgmp
+watershed.txt: watershed.c
+ sed '/^$$/,$$d' <$^ >$@.new && mv -f $@.new $@
+
install: all
$(INSTALL_DIRECTORY) $(bindir) $(sbindir)
$(INSTALL_PROGRAM) $(PROGRAMS) $(bindir)
$(INSTALL) -m 4774 -o root -g $(SYSTEM_GROUP) \
$(SUIDSBINPROGRAMS) $(sbindir)
-install-docs:
+install-docs: watershed.txt
$(INSTALL_DIRECTORY) $(man1dir) $(man8dir) $(txtdocdir)
$(INSTALL) -m 644 $(MAN1PAGES) ${man1dir}/.
$(INSTALL) -m 644 $(MAN8PAGES) ${man8dir}/.
+ $(INSTALL) -m 644 $(TXTDOCS) ${txtdocdir}/.
install-examples:
static void badusage(void) {
fputs(_("usage: watershed [<options>] <command>...\n"
- "options: -d|--state-dir <directory> -i|--command-id <id>\n"),
+ "options: -d|--state-dir <directory> -i|--command-id <id>\n"
+ "see /usr/share/doc/chiark-utils-bin/watershed.txt\n"),
stderr);
exit(127);
}
chiark-utils (4.1.31~~iwj) unstable; urgency=low
+ * watershed now installs its head doc comment in
+ /usr/share/doc/chiark-utils-bin/watershed.txt.
+ This is apropos of #659989 but is of course not a proper fix.
+
* chiark-backup Suggests chiark-utils-bin, not the nonexistent
chiark-cprogs (for `summer').