summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-03-24 17:34:47 +0000
committerwlemb <wlemb>2001-03-24 17:34:47 +0000
commitd56cd7e8ed05883e248c2947481cdc2bbce5aa2a (patch)
tree4e86c0bc5779260f458a4802f6b865283114e36b
parentbb7f02eaa4aff2763e0869da3b32722aa2042d2b (diff)
downloadgroff-d56cd7e8ed05883e248c2947481cdc2bbce5aa2a.tar.gz
* tmac/Makefile.sub: Strip mdoc.local also
* tmac/strip.sed: Fixed.
-rw-r--r--ChangeLog5
-rw-r--r--tmac/Makefile.sub8
-rw-r--r--tmac/strip.sed4
3 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a45fba9..28a72b1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-24 Ruslan Ermilov <ru@freebsd.org>
+
+ * tmac/Makefile.sub: Strip mdoc.local also
+ * tmac/strip.sed: Fixed.
+
2001-03-24 Werner LEMBERG <wl@gnu.org>
* tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
diff --git a/tmac/Makefile.sub b/tmac/Makefile.sub
index 6bd541d0..edaee6fe 100644
--- a/tmac/Makefile.sub
+++ b/tmac/Makefile.sub
@@ -39,7 +39,7 @@ sys_tmac_prefix=
all: stamp-strip stamp-wrap stamp-sed
-install_data: $(NORMALFILES) $(SPECIALFILES) man.local mdoc.local \
+install_data: $(NORMALFILES) $(SPECIALFILES) man.local \
stamp-strip stamp-wrap stamp-sed
-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
-test -d $(systemtmacdir) || $(mkinstalldirs) $(systemtmacdir)
@@ -73,10 +73,10 @@ install_data: $(NORMALFILES) $(SPECIALFILES) man.local mdoc.local \
-test -f $(localtmacdir)/man.local || \
$(INSTALL_DATA) $(srcdir)/man.local $(localtmacdir)/man.local
-test -f $(localtmacdir)/mdoc.local || \
- $(INSTALL_DATA) $(srcdir)/mdoc.local $(localtmacdir)/mdoc.local
+ $(INSTALL_DATA) $(srcdir)/mdoc.local-s $(localtmacdir)/mdoc.local
-stamp-strip: $(STRIPFILES) $(MDOCFILES)
- for f in $(STRIPFILES) $(MDOCFILES); do \
+stamp-strip: $(STRIPFILES) $(MDOCFILES) mdoc.local
+ for f in $(STRIPFILES) $(MDOCFILES) mdoc.local; do \
rm -f $$f-s; \
sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \
done
diff --git a/tmac/strip.sed b/tmac/strip.sed
index 6133411d..069c3db1 100644
--- a/tmac/strip.sed
+++ b/tmac/strip.sed
@@ -3,8 +3,8 @@
s/^\.[ ]*/./
s/^\.\\".*/./
s/\\".*/\\"/
- /\(.ds\)\|\(.as\)/!s/[ ]*\\"//
- /\(.ds\)\|\(.as\)/s/\([^ ]\)\\"/\1/
+ /\(.[ad]s\)/!s/[ ]*\\"//
+ /\(.[ad]s\)/s/\([^ ]*\)\\"/\1/
s/\([^/]\)doc-/\1/g
}
/^\.$/d