-# Makefile for Eric Raymond's silly hex dumper
+# Makefile for Eric Raymond's CP/M-like hex dumper
-VERS=$(shell sed <hexdump.spec -n -e '/Version: \(.*\)/s//\1/p')
+VERS=1.8
hexdump: hexdump.c
$(CC) -DRELEASE=\"$(VERS)\" -O hexdump.c -o hexdump
-SOURCES = README COPYING Makefile hexdump.c hexdump.xml hexdump.spec
+SOURCES = README COPYING NEWS control Makefile hexdump.c hexdump.xml
hexdump-$(VERS).tar.gz: $(SOURCES) hexdump.1
@ls $(SOURCES) hexdump.1 | sed s:^:hexdump-$(VERS)/: >MANIFEST
--- /dev/null
+ hexdump news
+
+1.8: 2012-12-03
+ Use C99 bools. Code passes cppcheck audit.
+
+1.7: 2010-10-20
+ Code fully ANSIfied. License changed to BSD. RPM spec removed.
+
+1.6: 2003-12-29
+ Source RPMs no longer depend on --define myversion
+
+1.5: 2003-12-26
+ Name changed to 'hexdump'.
+
+1.4: 2003-03-04
+ Packaging fixes.
+
+1.3: 2002-07-30
+ Documentation converted to XML-DocBook. A Windows NT port fix.
+
+1.2: 1999-09-13
+ Added RPM spec.
+
+1.1: 1998-06-29
+ Minor string header port fix. Archving production.
+
+Based on a 1.0 written in 1983.
HEXDUMP
(by Eric S. Raymond <esr@thyrsus.com>)
+Yes, it's yet another hex dumper. This one produces a nice CP/M-like
+format by default and can do EBCDIC. It's internationalized, too.
+Has many useful formatting functions.
+
This hex dumper was born because
a) od octal format is appallingly ugly
--- /dev/null
+# This is not a real Debian control file
+# It's project metadata for the shipper tool
+
+Package: hexdump
+
+Description: Dump binary files in a CP/M like hex format.
+ Yes, it's yet another hex dumper. This one produces a nice CP/M-like
+ format by default and can do EBCDIC. It's internationalized, too.
+ Has many optional formatting functions.
+
+XBS-Destinations: freecode
+
+Homepage: http://www.catb.org/~esr/hexdump
+
+XBS-Project-Tag-List: hex, binary, dump
+++ /dev/null
-Name: hexdump
-Version: 1.7
-Release: 1
-Summary: yet another hex dumper
-URL: http://www.catb.org/~esr/hexdump/
-Source0: %{name}-%{version}.tar.gz
-License: BSD
-Group: Development/Tools
-BuildRoot: %{_tmppath}/%{name}-root
-#Destinations: freshmeat
-
-%%description
-Yes, it's yet another hex dumper. This one produces a nice CP/M-like
-format by default and can do EBCDIC. It's internationalized, too.
-Has many nifty formatting functions.
-
-%prep
-%setup -q
-
-%build
-make hexdump hexdump.1
-
-%install
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-mkdir -p "$RPM_BUILD_ROOT"/usr/bin
-mkdir -p "$RPM_BUILD_ROOT"/usr/share/man/man1/
-cp hexdump "$RPM_BUILD_ROOT"/usr/bin
-cp hexdump.1 "$RPM_BUILD_ROOT"/usr/share/man/man1/
-
-%clean
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-
-%files
-%doc README COPYING
-%defattr(-,root,root,-)
-%{_mandir}/man1/hexdump.1*
-%{_bindir}/hexdump
-
-%changelog
-* Wed Oct 20 2010 Eric S. Raymond <esr@snark.thyrsus.com> 1.7-1
-- Code fully ANSIfied.
-- License changed to BSD.
-
-* Mon Dec 29 2003 Eric S. Raymond <esr@snark.thyrsus.com> 1.6-1
-- Source RPMs no longer depend on --define myversion
-