diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | pw-relnotes.5 | 9 | ||||
-rw-r--r-- | pw.1 | 2 |
4 files changed, 13 insertions, 7 deletions
@@ -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 @@ -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 @@ -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 |