]> thyrsus.com Git - hexdump.git/commitdiff
Version 1.1.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 29 Jun 1998 19:58:43 +0000 (19:58 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 29 Jun 1998 19:58:43 +0000 (19:58 +0000)
Makefile
README
hexdump.c
hexdump.xml

index 4ba43001bff6834b528bc7a84aa424389a3b0191..5200c9ecca48a33dc36e2b65bd78d1c9637b54f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,16 @@
 # 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
@@ -22,6 +22,6 @@ clean:
 
 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
diff --git a/README b/README
index 236d385cb650b935203e589e109cd4aa536ec0fd..217e5ef5ccdc19fb86c0526d7687b0488261041a 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-                               HEX 1.0
+                               HEX 1.1
                (by Eric S. Raymond <esr@snark.thyrsus.com>)
 
 This hex dumper was born because
@@ -14,6 +14,6 @@ in the source, it should work OK under any C with a stdio.h library.
 
 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
index 36f0a632d14f0b0129db9874854d52e95ac30bf3..ac01b8371bcc807dfe5a036d1efec85ae96a0b45 100644 (file)
--- a/hexdump.c
+++ b/hexdump.c
@@ -3,6 +3,7 @@
 #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  */
@@ -193,6 +194,8 @@ char *argv[];
     int            dumpcount = 0;  /* count of files dumped so far */
     char    *cp;
 
+    setlocale (LC_CTYPE, "");
+
     for (argv++, argc--; argc > 0; argv++, argc--)
     {
        char s = **argv;
index 9cd676cd4c3fb7f169b21772908b11e434106c6c..a7640549d09b47b844e4c2786144618fce5b67a2 100644 (file)
@@ -42,4 +42,4 @@ The definition of EBCDIC used is IBM's ASCII-compatible 96-character
 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.