# 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 >splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/' -e 's/.*/P("&");/'
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
* 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,
* your improvements, please.
*/
-
-#define REVISION "$Revision: 1.13 $"
-
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
help = 1;
break;
case 'v':
- printf("%s\n",REVISION); exit(0) ;
+ printf("ascii %2.1f\n",REVISION); exit(0) ;
break;
default :
help = 1;