# ascii -- interactive ASCII reference
-# Note: When the version changes, you also have to change the RPM spec file.
-VERS=3.3
+VERS=3.4
CFLAGS = -O
rm /usr/bin/ascii
rm /usr/share/man/man1/ascii.1
-SOURCES = README COPYING Makefile ascii.c ascii.xml ascii.spec splashscreen nametable ascii.cgi
+SOURCES = README COPYING NEWS Makefile ascii.c ascii.xml ascii.spec splashscreen nametable ascii.cgi
ascii-$(VERS).tar.gz: $(SOURCES) ascii.1
@ls $(SOURCES) ascii.1 | sed s:^:ascii-$(VERS)/: >MANIFEST
dist: ascii-$(VERS).tar.gz
RPMROOT=/usr/src/redhat
-RPM = rpmbuild
-RPMFLAGS = -ba
rpm: dist
- cp ascii-$(VERS).tar.gz $(RPMROOT)/SOURCES;
- cp ascii.spec $(RPMROOT)/SPECS
- cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) ascii.spec
- cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/ascii-$(VERS)*.rpm .
+ rpmbuild --define 'myversion $(VERS)' -ta ascii-$(VERS).tar.gz
+ cp $(RPMROOT)/RPMS/*/ascii-$(VERS)*.rpm .
cp $(RPMROOT)/SRPMS/ascii-$(VERS)*.src.rpm .
/*
* ascii.c -- quick crossreference for ASCII character aliases
*
- * by Eric S. Raymond <esr@snark.thyrsus.com>, v1.0 March 1990
- * v1.1 November 1990 -- revised `slang' from the 2.2 pronunciation guide
- * v1.2 March 1995 -- Fixed a core-dump bug
- * v1.3 October 1995 -- Fixed a bug that shows up only under ELF.
- * v2.0 December 1995 -- Interpret ISO-style code table escapes.
- * v2.1 August 1997 -- merge in changes by Ioannis Tambouras.
- * v2.2 November 1997 -- merge in more changes by Ioannis Tambouras.
- * v2.3 November 1997 -- incorporated Colin Plumb's splash-screen idea.
- * v2.4 December 1998 -- additions by Brian Ginsbach.
- * v2.5 December 1998 -- -s option by David N. Welton.
- * v2.6 June 1999 -- bug fixes by M.R. van Schouwen.
- * v2.7 October 1999 -- minor packaging and option changes.
- * v3.0 July 2000 -- added HTML/SGML entity sames
- * v3.1 July 2002 -- documentation converted to XML
- * v3.2 April 2003 -- Added more XML entity names, intoduced nametable
- *
* Tries to interpret arguments as names or aliases of ascii characters
* and dumps out *all* the aliases of each. Accepts literal characters,
* standard mnemonics, C-style backslash escapes, caret notation for control