aboutsummaryrefslogtreecommitdiffstats
path: root/refer
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-12-25 17:53:10 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-12-25 17:53:10 +0000
commit80647123fe63c15caa93687028a45f9efee5b669 (patch)
tree6fe6df04e4b2cd506323ad2994b9527dd1ed7193 /refer
parent6db6db4b7f38f7760b90ec861a39b5ccb9df5ba9 (diff)
downloadsrc-vendor/heirloom-doctools.tar.gz
src-vendor/heirloom-doctools.zip
Notes
Notes: svn path=/vendor/heirloom-doctools/dist/; revision=310550 svn path=/vendor/heirloom-doctools/20161106/; revision=310551; tag=vendor/heirloom-doctools/20161106
Diffstat (limited to 'refer')
-rw-r--r--refer/Makefile.mk14
-rw-r--r--refer/hunt2.c2
-rw-r--r--refer/lookbib.1.in (renamed from refer/lookbib.1)0
-rw-r--r--refer/refer.1.in (renamed from refer/refer.1)0
-rw-r--r--refer/roffbib.1.in (renamed from refer/roffbib.1)0
5 files changed, 13 insertions, 3 deletions
diff --git a/refer/Makefile.mk b/refer/Makefile.mk
index 2c5761825339..e6f933b48685 100644
--- a/refer/Makefile.mk
+++ b/refer/Makefile.mk
@@ -17,7 +17,8 @@ FLAGS = -DMACDIR='"$(MACDIR)"' -DREFDIR='"$(REFDIR)"' $(EUC) $(DEFINES) \
.c.o:
$(CC) $(_CFLAGS) $(FLAGS) -c $<
-all: refer addbib lookbib sortbib roffbib indxbib mkey inv hunt papers/runinv
+all: refer addbib lookbib sortbib roffbib indxbib mkey inv hunt papers/runinv \
+ lookbib.1 refer.1 roffbib.1
cd papers && PATH=..:$$PATH sh runinv
refer: $(ROBJ)
@@ -89,10 +90,19 @@ clean:
rm -f $(ROBJ) refer $(AOBJ) addbib $(LOBJ) lookbib \
$(SOBJ) sortbib roffbib indxbib $(MOBJ) mkey \
$(IOBJ) inv $(HOBJ) hunt papers/runinv core log *~ \
- papers/Ind.i?
+ papers/Ind.i? lookbib.1 refer.1 roffbib.1
mrproper: clean
+lookbib.1: lookbib.1.in
+ sed 's"/usr/ucblib/reftools/"$(ROOT)$(REFDIR)/"' lookbib.1.in > $@
+
+refer.1: refer.1.in
+ sed 's"/usr/ucblib/reftools/"$(ROOT)$(REFDIR)/"' refer.1.in > $@
+
+roffbib.1: roffbib.1.in
+ sed 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' roffbib.1.in > $@
+
addbib.o: addbib.c
deliv2.o: deliv2.c refer..c
glue1.o: glue1.c refer..c
diff --git a/refer/hunt2.c b/refer/hunt2.c
index 804316436abb..76d6727b887f 100644
--- a/refer/hunt2.c
+++ b/refer/hunt2.c
@@ -119,7 +119,7 @@ doquery(long *hpt, int nhash, FILE *fb, int nitem, char **qitem, unsigned *mptr)
}
else
{
- if (master.a[i] == -1) break;
+ if (master.a[i] == (unsigned int)-1) break;
}
}
nf= i;
diff --git a/refer/lookbib.1 b/refer/lookbib.1.in
index 03e7554ce205..03e7554ce205 100644
--- a/refer/lookbib.1
+++ b/refer/lookbib.1.in
diff --git a/refer/refer.1 b/refer/refer.1.in
index 3af187e1aea5..3af187e1aea5 100644
--- a/refer/refer.1
+++ b/refer/refer.1.in
diff --git a/refer/roffbib.1 b/refer/roffbib.1.in
index 815abf8f592d..815abf8f592d 100644
--- a/refer/roffbib.1
+++ b/refer/roffbib.1.in