chiark / gitweb /
create-help.sh: Fix 'tg update' generated help text
authorPetr Baudis <pasky@suse.cz>
Tue, 5 Aug 2008 22:31:21 +0000 (00:31 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 5 Aug 2008 22:31:21 +0000 (00:31 +0200)
create-help.sh

index 0c40ee2..766e8d4 100755 (executable)
@@ -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