diff --git a/makefile b/makefile index 161999a4..8c6eea5a 100644 --- a/makefile +++ b/makefile @@ -241,6 +241,9 @@ doc: change: format vim ixwebsocket/IXWebSocketVersion.h docs/CHANGELOG.md +commit: + git commit -am "`sh tools/extract_latest_change.sh`" + .PHONY: test .PHONY: build .PHONY: ws diff --git a/tools/extract_latest_change.sh b/tools/extract_latest_change.sh new file mode 100644 index 00000000..d605d9cc --- /dev/null +++ b/tools/extract_latest_change.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +grep -A 3 '^##' docs/CHANGELOG.md | head -n 3 | tail -n 1