From 36e8c26bb0e20df9bd53c5fc9f176ac0aa2fe930 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 27 Dec 2018 14:15:36 -0500 Subject: Makefile.am: Trim headings and copyright section from TODO --- (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 387293a..9a68346 100644 --- a/Makefile.am +++ b/Makefile.am @@ -117,6 +117,14 @@ todo_script = \ /^[0-9]* .[ \t]*\#[ \t]*XXX/,/^[0-9]* \.[ \t]*[^ \t\#]/{ \ /^[0-9]* \.[ \t]*\#/p; \ }; +todo_file_script = \ + H; \ + $${ \ + g; \ + s/^\n*[^\n][^\n]*\n[=-][=-]*\n\n*//; \ + s/\n*[^\n][^\n]*\n[=-][=-]*\n.*$$//; \ + p; \ + }; todo: @set -e; \ printf '\n'; \ @@ -137,7 +145,7 @@ todo: if [ -f '$(top_srcdir)/TODO' ]; then \ printf 'TODO file:\n'; \ printf '==========\n\n'; \ - cat '$(top_srcdir)/TODO'; \ + sed -n '$(todo_file_script)' '$(top_srcdir)/TODO'; \ printf '\n'; \ fi -- cgit v0.9.1