From: Eric S. Raymond Date: Wed, 13 Oct 2010 18:54:11 +0000 (-0400) Subject: Fix a comment bug in the nametable. Improve splashscreen generation. X-Git-Tag: 3.7 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=706003b65f29e025bd59682a23bf565d0894656f;p=ascii.git Fix a comment bug in the nametable. Improve splashscreen generation. (The date on this commit is wring because I had to reconstruct after an unrecoverable SVN error.) --- diff --git a/Makefile b/Makefile index 8d05a87..b3c0cca 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ ascii: ascii.c splashscreen.h nametable.h $(CC) -DREVISION=$(VERS) ascii.c -o ascii splashscreen.h: splashscreen - sed splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/' -e 's/.*/puts("&");/' + sed splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/.*/P("&");/' nametable.h: nametable sed nametable.h -e '/^#/d' -e 's/^[A-Za-z ]*: */ /' -e 's/%%/ }, {/' @@ -20,7 +20,7 @@ ascii.html: ascii.xml xmlto html-nochunks ascii.xml clean: - rm -f ascii ascii.o splashscreen.h ascii.1 *.rpm *.tar.gz + rm -f ascii ascii.o splashscreen.h nametable.h ascii.1 *.rpm *.tar.gz MANIFEST install: ascii ascii.1 cp ascii $(DESTDIR)/usr/bin/ascii @@ -32,13 +32,14 @@ uninstall: SOURCES = README COPYING Makefile ascii.c ascii.xml ascii.spec splashscreen nametable ascii.cgi +# Assumes this is the trubnk of a Subversion repository ascii-$(VERS).tar.gz: $(SOURCES) ascii.1 @ls $(SOURCES) ascii.1 | sed s:^:ascii-$(VERS)/: >MANIFEST - @(cd ..; ln -s ascii ascii-$(VERS)) - (cd ..; tar -czvf ascii/ascii-$(VERS).tar.gz `cat ascii/MANIFEST`) + @(cd ..; ln -s trunk ascii-$(VERS)) + (cd ..; tar -czvf trunk/ascii-$(VERS).tar.gz `cat trunk/MANIFEST`) @(cd ..; rm ascii-$(VERS)) dist: ascii-$(VERS).tar.gz release: ascii-$(VERS).tar.gz ascii.html - shipper -f; rm -f CHANGES ANNOUNCE* ascii.html *.1 *.html *.rpm *.lsm + shipper; rm -f CHANGES ANNOUNCE* ascii.html *.1 *.html *.rpm *.lsm diff --git a/ascii.c b/ascii.c index 820cecc..884c9c6 100644 --- a/ascii.c +++ b/ascii.c @@ -58,7 +58,7 @@ void showHelp(FILE *out, char *progname) { fprintf(out,"Usage: %s [-dxohv] [-t] [char-alias...]\n", progname); -#define P(s) puts(s); +#define P(s) fputs(s, out); #include "splashscreen.h" #undef P diff --git a/ascii.spec b/ascii.spec index 6b910ce..9d887a6 100644 --- a/ascii.spec +++ b/ascii.spec @@ -1,5 +1,5 @@ Name: ascii -Version: 3.6 +Version: 3.7 Release: 1 URL: http://www.catb.org/~esr/ascii/ Source0: %{name}-%{version}.tar.gz @@ -41,6 +41,9 @@ cp ascii.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/ %doc README COPYING %changelog +* Wed Mar 2 2005 Eric S. Raymond - 3.7-1 +- Fix a comment bug in the nametable. Improve splashscreen generation. + * Sun Jan 11 2004 Eric S. Raymond 3.6-1 - Fix brown-paper-bag bug in the Space entry. diff --git a/nametable b/nametable index 50a40b4..d875d6f 100644 --- a/nametable +++ b/nametable @@ -341,7 +341,7 @@ Comments: "# See `/' for matching names.", Mnemonics: "]", ISO names: "Right Square Bracket", Synonyms: "Unbracket", "Ket", "Unsquare", -Comments: "# See `]' for matching names.", +Comments: "# See `[' for matching names.", %% Mnemonics: "^", ISO names: "Circumflex Accent",