Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hexdump: update release script to use version 1.7

Include a patch to avoid printing tabs and distorting the ASCII output.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information...
commit 31801cb5371f4cd55dc433c2cda2020abce45eb0 1 parent 4c01ae5
@patthoyts patthoyts authored
View
28 src/hexdump/patches/0001-Do-not-print-tabs-in-the-ASCII-output.patch
@@ -0,0 +1,28 @@
+From 07fde44be79d14cc031a4ddff133299a10b78944 Mon Sep 17 00:00:00 2001
+From: Pat Thoyts <patthoyts@users.sourceforge.net>
+Date: Sat, 9 Jun 2012 23:53:12 +0100
+Subject: [PATCH] Do not print tabs in the ASCII output.
+
+Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
+---
+ hexdump.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/hexdump.c b/hexdump.c
+index c158a7f..a347d02 100644
+--- a/hexdump.c
++++ b/hexdump.c
+@@ -101,8 +101,9 @@ static void dumpfile(FILE *f)
+ else /* we're dumping ASCII */
+ {
+ ascii[ai] = (isprint (ch) || ch == ' ') ? ch : '.';
++ if (ch == 9) ascii[ai] = '.';
+
+- if (cflag && (isprint(ch) || ch == ' '))
++ if (cflag && ((isprint(ch) && ch != 9) || ch == ' '))
+ (void) printf("%c ", ch);
+ else if (cflag && ch && (cp = strchr(specials, ch)))
+ (void) printf("\\%c ", escapes[cp - specials]);
+--
+1.7.11.rc1.6953.gf299a20
+
View
6 src/hexdump/release.sh
@@ -2,7 +2,7 @@
cd "$(dirname "$0")"
-VERSION=1.6
+VERSION=1.7
DIR=hexdump-$VERSION
URL=http://catb.org/~esr/hexdump/$DIR.tar.gz
FILE=${URL##*/}
@@ -32,7 +32,7 @@ die "Could not apply patches"
(cd $DIR &&
make &&
+index=$(/share/msysGit/pre-install.sh) &&
cp hexdump.exe /mingw/bin/ &&
-cd / &&
-git commit -s -m "Install $FILE" /mingw/bin/hexdump.exe
+/share/msysGit/post-install.sh $index "Install $FILE"
) || die "Could not install $FILE"
Please sign in to comment.
Something went wrong with that request. Please try again.