aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-08 17:15:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-08 17:15:42 -0700
commit53cb074b0db3fb20b1496ef608bb6b7fadad59ad (patch)
tree2492a2f346e083050b0dccd3f05ed7b3cdd6e684
parent5514f708cedeb3f2c2df68714f7a2d89bdefc2fe (diff)
downloadpw-53cb074b0db3fb20b1496ef608bb6b7fadad59ad.tar.gz
pw-53cb074b0db3fb20b1496ef608bb6b7fadad59ad.tar.bz2
pw-53cb074b0db3fb20b1496ef608bb6b7fadad59ad.zip
Version 4 is released.pw-4
-rw-r--r--Makefile6
-rw-r--r--README.md3
-rw-r--r--pw-relnotes.59
-rw-r--r--pw.12
4 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 4ff9774..9a6612c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-PW_SHA256 := 7361c87eb5e55240a3afbf7f41bc2a08f93e392414103075d3929b5fd53e021c
+PW_SHA256 := 2faedc2915507276304d7bb9b28231cb46c6bc6c57c6ad27dc1aafe19ca32969
DARWIN = $(findstring Darwin,$(shell uname))
NEEDED_CFLAGS := -std=c99 -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__
NEEDED_CFLAGS += $(if $(DARWIN),-D_DARWIN_C_SOURCE)
SHA256TOOL := $(if $(DARWIN),shasum -a 256,sha256sum)
ifeq ($(shell $(SHA256TOOL) pw.c),$(PW_SHA256) pw.c)
-PW_VERSION := 3
+PW_VERSION := 4
else
-PW_VERSION := 3-$(shell git rev-parse --short HEAD)
+PW_VERSION := 4-$(shell git rev-parse --short HEAD)
PW_VERSION := $(PW_VERSION)$(shell git diff --quiet || printf -- "-dirty")
endif
CFLAGS ?= -g -O2 -W -Wall
diff --git a/README.md b/README.md
index d55f8b0..43e919f 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,9 @@ for text streams.
* **`pw` is tiny:** it is a little over 2000 lines of C in a single source
file, compiling to an executable of around 32 kilobytes.
+ (Except on MacOS, where an additional file called `macpoll.c` is
+ compiled and linked in, because MacOS's `poll` function does not work with
+ devices such as TTYs, only pipes and sockets.)
* **`pw` requires a very low amount of RAM:** Given inputs with typical line
lengths, and 24 line snapshots, `pw` it needs less than 64 kilobytes of RAM
diff --git a/pw-relnotes.5 b/pw-relnotes.5
index f7e3ed3..d64bd25 100644
--- a/pw-relnotes.5
+++ b/pw-relnotes.5
@@ -24,16 +24,19 @@
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
-.TH PW-RELNOTES 5 "10 Mar 2023" "Version 3" "Pipe Watch Release Notes"
+.TH PW-RELNOTES 5 "8 Jun 2023" "Version 4" "Pipe Watch Release Notes"
.SH DESCRIPTION
This document provides release notes for the
.I pw
utility.
+.SH CHANGES IN VERSION 4 (2023-06-08)
+
+Working on Mac OS.
+
.SH CHANGES IN VERSION 3 (2023-03-10)
-.IP 1.
A bogus time calculation in the long timeout interval logic was fixed.
.SH CHANGES IN VERSION 2 (2022-07-15)
@@ -42,7 +45,7 @@ A bogus time calculation in the long timeout interval logic was fixed.
The original
.B :s
command for saving settings was renamed to
-.B :sa
+.BR :sa .
.IP 2.
Bugfix: a regression was fixed causing colon commands not to have
diff --git a/pw.1 b/pw.1
index c3f01c9..ea14804 100644
--- a/pw.1
+++ b/pw.1
@@ -24,7 +24,7 @@
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
-.TH PW 1 "10 Mar 2022" "Version 3" "Pipe Watch"
+.TH PW 1 "8 Jun 2023" "Version 4" "Pipe Watch"
.SH NAME
pw \- Pipe Watch: monitor recent lines of output from pipe