Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/DaveShepperd/hd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Shepperd committed Aug 15, 2023
2 parents fc9147c + 80ca1dd commit 592e906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ CFLAGS = $(DBG) $(OPT) $(MACH) $(WARN) $(STD) $(STRICT)

.SILENT:

hd: hd.c Makefile
hd: hd.c Makefile.mingw
$(CC) $(CFLAGS) -o $@ $<

clean: Makefile
rm -rf Debug Release hd
del hd.exe

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ I wrote this little tool over 30 years ago. Used mainly on Linux nearly daily ev
Before uploading to github, I added a --head, --tail (and --wide) options so it would be
more useful on Windows when built with MinGW32. This because Windows (XP,7,10) doesn't have
much in the way of redirects nor head nor tail nor less (although it does have more that can
be piped, at least on W10). I can't speak to Windows11 (yet). The Makefile is for Linux.
be piped, at least on W10). I can't speak to Windows11 (yet). The Makefile is for Linux and
Makefile.mingw is for MinGW32-make.

<pre>
Usage: hd [-bhwB?] [--head=n] [--tail=n] [--skip=n] file [... file]
Expand Down

0 comments on commit 592e906

Please sign in to comment.