groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/02: Add simple example for mm macro package.


From: G. Branden Robinson
Subject: [groff] 01/02: Add simple example for mm macro package.
Date: Thu, 2 Nov 2017 07:19:04 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 445bf58765b759546e238a235651eb0bf5b34325
Author: G. Branden Robinson <address@hidden>
Date:   Thu Nov 2 06:56:36 2017 -0400

    Add simple example for mm macro package.
    
    contrib/mm/mm.am:
    * Ship the file in its own subdirectory of the groff examples directory.
    * Remove files from EXTRA_DIST that are already being shipped by other
      targets.
    * Add comment noting that EXTRA_DIST isn't actually doing anything at
      present.
    * Add Vim modeline.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 contrib/mm/examples/letter.mm | 33 +++++++++++++++++++++++++++++++++
 contrib/mm/mm.am              | 17 ++++++++++++-----
 2 files changed, 45 insertions(+), 5 deletions(-)

diff --git a/contrib/mm/examples/letter.mm b/contrib/mm/examples/letter.mm
new file mode 100644
index 0000000..078546d
--- /dev/null
+++ b/contrib/mm/examples/letter.mm
@@ -0,0 +1,33 @@
+.\" Set point size to 14.
+.S 14
+.\" Set paragraph type to "indented".
+.nr Pt 1
+                                                               1 November 2017
+.\" Set line spacing to double-spaced.
+.SP 2
+.\" Start display.
+.DS
+Mr. Ty Coon
+President of Vice, Intellectual Property and Licensing
+Very Big Corporation of America
+Silly Valley, CA 94043
+.\" End display.
+.DE
+Dear Mr. Coon,
+.\" Start new paragraph.
+.P
+I would like to request that your wholly-owned subsidiary, Yoyodyne, Inc.,
+disclaim all copyright interest in the program `Gnomovision' (which makes 
passes
+at compilers) written by Juliet Hacker prior to her employment with Yoyodyne.
+.P
+Our colleagues at the Software Freedom Conservancy have determined and informed
+us that Ms. Hacker's employment agreement is a contract of adhesion.
+.P
+Thank you for your prompt attention to this matter.
+.\" Set line spacing to single-spaced.
+.SP
+                                                               Sincerely yours,
+.\" Leave room for signature.
+.SP 2
+                                                               Tracy T. Jordan
+.\" vim: set noexpandtab textwidth=80:
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index 2554e6e..ba5eac2 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -45,22 +45,25 @@ dist_mm_DATA = $(MMFILES)
 tmacmmdir = $(tmacdir)
 dist_tmacmm_DATA = contrib/mm/refer-mm.tmac
 
+MMEXAMPLEFILES=\
+  contrib/mm/examples/letter.mm
+
+mmexampledir=$(exampledir)/mm
+dist_mmexample_DATA = $(MMEXAMPLEFILES)
+
 # Local configuration files with default values.
 MMLOCALE = \
   locale \
   se_locale
 
+# XXX: This doesn't actually ship anything at present.
 EXTRA_DIST += \
   contrib/mm/ChangeLog \
   contrib/mm/examples \
   contrib/mm/Makefile.sim \
   contrib/mm/mm \
   contrib/mm/NOTES \
-  contrib/mm/README \
-  contrib/mm/groff_mm.7.man \
-  contrib/mm/groff_mmse.7.man \
-  contrib/mm/mmroff.1.man \
-  contrib/mm/mmroff.pl
+  contrib/mm/README
 
 mmroff: $(mm_srcdir)/mmroff.pl
        $(SED) -e 's;/usr/bin/perl;$(PERL);' $(mm_srcdir)/mmroff.pl >$@
@@ -88,6 +91,9 @@ install_mm:
        done
 uninstall-local: uninstall_mm
 uninstall_mm:
+       if test -d $(DESTDIR)$(mmexampledir); then \
+         rmdir $(DESTDIR)$(mmexampledir); \
+       fi
        -for f in $(MMLOCALE); do \
          test -s $(DESTDIR)$(tmacdir)/mm/$$f \
            || $(RM) $(DESTDIR)$(tmacdir)/mm/$$f; \
@@ -113,3 +119,4 @@ dist_mm:
 # Local Variables:
 # mode: makefile-automake
 # End:
+# vim: set filetype=automake:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]