# Note: When the version changes, you also have to change
# * the name of the containing directory
# * the RPM spec file
-V=1.0
+VERS=1.1
hex: hex.c
SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec
-hex.tar: $(SOURCES)
- (cd ..; tar -cvf hex-$(V)/hex.tar `echo $(SOURCES) | sed "/\(^\| \)/s// hex-$(V)\//g"`)
-hex.tar.gz: hex.tar
- gzip -f hex.tar
+hex-$(VERS).tar: $(SOURCES)
+ tar --name-prefix "hex-$(VERS)/" -cvf hex-$(VERS).tar $(SOURCES)
+hex-$(VERS).tar.gz: hex-$(VERS).tar
+ gzip -f hex-$(VERS).tar
hex.shar: $(SOURCES)
shar $(SOURCES) >hex.shar
TOPDIR=/usr/src/rpm
rpm: hex.tar.gz
- cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(V).tar.gz
- cp hex.spec $(TOPDIR)/SPECS/hex-$(V)-1.spec
- rpm -ba hex-$(V)-1.spec
+ cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(VERS).tar.gz
+ cp hex.spec $(TOPDIR)/SPECS/hex-$(VERS)-1.spec
+ rpm -ba hex-$(VERS)-1.spec
- HEX 1.0
+ HEX 1.1
(by Eric S. Raymond <esr@snark.thyrsus.com>)
This hex dumper was born because
You can find updates and other resources at:
- http://www.ccil.org/~esr/home.html
+ http://www.tuxedo.org/~esr
-Send comments and bug reports to: esr@snark.thyrsus.com
+Send comments and bug reports to: esr@thyrsus.com
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#include <locale.h>
#define DEFWIDTH 16 /* Default # chars to show per line */
#define MAXWIDTH 32 /* Maximum # of bytes per line */
int dumpcount = 0; /* count of files dumped so far */
char *cp;
+ setlocale (LC_CTYPE, "");
+
for (argv++, argc--; argc > 0; argv++, argc--)
{
char s = **argv;
SCS set used with Systems Network Architecture (SNA).
.SH AUTHOR
Eric S. Raymond <esr@snark.thyrsus.com>. See my home page at
-http://www.ccil.org/~esr/home.html for updates and other resources.
+http://www.tuxedo.org/~esr for updates and other resources.