From f05ecde310ba59cc9d9457da154db3f30caa253d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 6 Nov 1999 16:22:41 +0000 Subject: [PATCH] The 2.7 version. --- Makefile | 16 ++++++++++++---- ascii.c | 8 +++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 509f948..5fc356a 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,12 @@ # Note: When the version changes, you also have to change # the RPM spec file and LSM -VERS=2.6 +VERS=2.7 CFLAGS = -O -ascii: ascii.o -ascii.o: ascii.c splashscreen.h +ascii: ascii.c splashscreen.h + $(CC) -DREVISION=$(VERS) ascii.c -o ascii splashscreen.h: splashscreen sed splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/' -e 's/.*/P("&");/' @@ -15,7 +15,15 @@ splashscreen.h: splashscreen clean: rm -f ascii ascii.tar* ascii.shar ascii.o splashscreen.h -SOURCES = Makefile ascii.c ascii.1 ascii.lsm ascii.spec splashscreen +install: + cp ascii /usr/bin/ascii + cp ascii.1 /usr/man/man1 + +uninstall: + rm /usr/bin/ascii + rm /usr/man/man1 + +SOURCES = README Makefile ascii.c ascii.1 ascii.lsm ascii.spec splashscreen ascii-$(VERS).tar.gz: $(SOURCES) @ls $(SOURCES) | sed s:^:ascii-$(VERS)/: >MANIFEST diff --git a/ascii.c b/ascii.c index 3d0eeff..2e92a02 100644 --- a/ascii.c +++ b/ascii.c @@ -11,7 +11,8 @@ * 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.6 June 1999 -- bug fixes by M.R. van Schouwen. + * v2.7 October 1999 -- minor packaging and option changes. * * Tries to interpret arguments as names or aliases of ascii characters * and dumps out *all* the aliases of each. Accepts literal characters, @@ -27,9 +28,6 @@ * your improvements, please. */ - -#define REVISION "$Revision: 1.13 $" - #include #include #include @@ -328,7 +326,7 @@ process_options(int argc, char *argv[], char * opt_string) help = 1; break; case 'v': - printf("%s\n",REVISION); exit(0) ; + printf("ascii %2.1f\n",REVISION); exit(0) ; break; default : help = 1; -- 2.43.0