From: Petr Baudis Date: Tue, 5 Aug 2008 22:31:21 +0000 (+0200) Subject: create-help.sh: Fix 'tg update' generated help text X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=e311d15f39249ade0927df61994407c22440cf4e;hp=db4bc100e4afd0e405443f5bab4a242b989a6a64 create-help.sh: Fix 'tg update' generated help text --- diff --git a/create-help.sh b/create-help.sh index 0c40ee2..766e8d4 100755 --- a/create-help.sh +++ b/create-help.sh @@ -10,8 +10,8 @@ fi < README awk ' BEGIN { incommand = 0; } /^tg '"$1"'$/ { incommand = 1; next; } - /^tg/ { incommand = 0; next; } /^~/ { next; } # Ignore the title underlines. + /^[^\t]/ { incommand = 0; next; } { if (incommand) { print $0; } } ' > tg-"$1".txt