aboutsummaryrefslogtreecommitdiffstats
path: root/soelim
diff options
context:
space:
mode:
Diffstat (limited to 'soelim')
-rw-r--r--soelim/Makefile.mk7
-rw-r--r--soelim/soelim.1.in (renamed from soelim/soelim.1)4
-rw-r--r--soelim/soelim.c2
3 files changed, 8 insertions, 5 deletions
diff --git a/soelim/Makefile.mk b/soelim/Makefile.mk
index ada1441b7e9f..9e2bf763753c 100644
--- a/soelim/Makefile.mk
+++ b/soelim/Makefile.mk
@@ -5,7 +5,7 @@ FLAGS =
.c.o:
$(CC) $(_CFLAGS) $(FLAGS) -c $<
-all: soelim
+all: soelim soelim.1
soelim: $(OBJ)
$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o soelim
@@ -16,6 +16,9 @@ install:
$(INSTALL) -c -m 644 soelim.1 $(ROOT)$(MANDIR)/man1/soelim.1
clean:
- rm -f $(OBJ) soelim core log *~
+ rm -f $(OBJ) soelim core log *~ soelim.1
mrproper: clean
+
+soelim.1: soelim.1.in
+ sed 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' soelim.1.in > $@
diff --git a/soelim/soelim.1 b/soelim/soelim.1.in
index 4f676f58ece9..2fca5ec40b55 100644
--- a/soelim/soelim.1
+++ b/soelim/soelim.1.in
@@ -54,10 +54,10 @@ it allows the placement of individual tables
in separate files to be run as a part of a large document.
.PP
Note that inclusion can be suppressed by using
-`\'' instead of `\.', i.e.
+\(oq\(aq\(cq instead of \(oq.\(cq, i.e.
.PP
.DT
- \'so /usr/ucblib/doctools/tmac/s
+ \(aqso /usr/ucblib/doctools/tmac/s
.PP
A sample usage of
.I soelim
diff --git a/soelim/soelim.c b/soelim/soelim.c
index 2652ba61577f..ae79baa10d4b 100644
--- a/soelim/soelim.c
+++ b/soelim/soelim.c
@@ -70,7 +70,7 @@ main(int argc, char **argv)
int process(char *file)
{
- register int n;
+ size_t n;
register int c;
static char *fname = NULL;
static size_t fnsize = 0;