]> thyrsus.com Git - bluemoon.git/commitdiff
Documentation is now SGML.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Jul 2002 22:26:34 +0000 (22:26 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Jul 2002 22:26:34 +0000 (22:26 +0000)
Makefile
blue.xml
bluemoon.spec

index a877443db430ea67ba6614771376031fbc60af6e..2d73bf7517619b48a512c9741bde98694dee7988 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,26 +3,32 @@
 # Note: When the version changes, you also have to change
 #  * the LSM file
 #  * the RPM spec file
-V=2.4
-
-SOURCES = READ.ME Makefile blue.c blue.c.orig blue.6 blue.lsm *.spec
+V=2.5
 
+SOURCES = READ.ME Makefile blue.c blue.c.orig blue.sgml blue.lsm *.spec
 CFLAGS=-O
 
 blue: blue.c
        cc $(CFLAGS) -DVERSION=\"$(V)\" blue.c -lncurses -o blue
 
+blue.6: blue.sgml
+       docbook2man blue.sgml
+
 blue-$(V).tar.gz: $(SOURCES)
        @ls $(SOURCES) | sed s:^:blue-$(V)/: >MANIFEST
        @(cd ..; ln -s blue blue-$(V))
        (cd ..; tar -czvf blue/blue-$(V).tar.gz `cat blue/MANIFEST`)
        @(cd ..; rm blue-$(V))
 
-blue.shar: $(SOURCES)
-       shar $(SOURCES) >blue.shar
-
 clean:
-       rm -f blue blue.tar blue*.gz blue*.rpm blue.shar *~
+       rm -f blue blue.6 blue.tar blue*.gz blue*.rpm blue.shar *~
+
+install: blue.6 uninstall
+       cp blue /usr/bin
+       cp blue.6 /usr/share/man/man6/blue.6
+
+uninstall:
+       rm -f /usr/bin/blue /usr/share/man/man6/blue.6
 
 dist: blue-$(V).tar.gz
 
index 385ab1bbd7b742c3883398615ea1b737672635a9..17a70b233ac593911ea48a0ab1adc5f2f7bbc127 100644 (file)
--- a/blue.xml
+++ b/blue.xml
@@ -1,13 +1,13 @@
 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
 <refentry id='blue.6'>
 <refmeta>
-<refentrytitle>BLUE</refentrytitle>
+<refentrytitle>blue</refentrytitle>
 <manvolnum>6</manvolnum>
 <refmiscinfo class='date'>Nov 31 1994</refmiscinfo>
 </refmeta>
 <refnamediv id='name'>
 <refname>blue</refname>
-<refpurpose>Blue Moon</refpurpose>
+<refpurpose>Blue Moon card solitaire</refpurpose>
 </refnamediv>
 <refsynopsisdiv id='synopsis'>
 
@@ -42,8 +42,8 @@ poor.  </para>
 <para>Originally written by Tim Lister.  Visual user interface and
 color support by Eric S. Raymond &lt;esr@snark.thyrsus.com&gt;. The
 ncurses version was written in November 1994.  See <ulink
-url='http://www.ccil.org/'>http://www.ccil.org/~esr/</ulink>
-for updates, also other software and resources by ESR.</para>
+url='http://www.ccil.org/~esr/'>http://www.ccil.org/~esr/</ulink> for
+updates, also other software and resources by ESR.</para>
 
 </refsect1>
 </refentry>
index 3a3d12925f103ff3489375114be8ec7fe4871c24..133b21eecb6dae0ea798dd9620c98bf2f35c5b94 100644 (file)
@@ -1,8 +1,8 @@
 Name: blue
 Summary: Blue Moon solitaire (text mode)
-Version: 2.4
+Version: 2.5
 Release: 1
-Source: locke.ccil.org:/pub/esr/blue-2.4.tar.gz
+Source: locke.ccil.org:/pub/esr/blue-2.5.tar.gz
 Copyright: BSD-like
 Group: Games
 %description
@@ -25,10 +25,8 @@ deals. A good score is 1-3 deals, 4-7 is average, 8 or more is poor.
 make
 
 %install
-rm -f /usr/bin/blue
-cp blue /usr/bin
-cp blue.6 /usr/man/man6/blue.6
+make install
 
 %files
-/usr/man/man6/blue.6
+/usr/share/man/man6/blue.6
 /usr/bin/blue