chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tg.sh: Avoid use of non-SUS 'echo -e'
[topgit.git]
/
create-help.sh
diff --git
a/create-help.sh
b/create-help.sh
index 0c40ee27899d60f0d9d62f84446156f110d0e7f0..766e8d4304ff24c1ff1251bef1d0d6ea4bc3b864 100755
(executable)
--- a/
create-help.sh
+++ b/
create-help.sh
@@
-10,8
+10,8
@@
fi
< README awk '
BEGIN { incommand = 0; }
/^tg '"$1"'$/ { incommand = 1; next; }
< README awk '
BEGIN { incommand = 0; }
/^tg '"$1"'$/ { incommand = 1; next; }
- /^tg/ { incommand = 0; next; }
/^~/ { next; } # Ignore the title underlines.
/^~/ { next; } # Ignore the title underlines.
+ /^[^\t]/ { incommand = 0; next; }
{ if (incommand) { print $0; } }
' > tg-"$1".txt
{ if (incommand) { print $0; } }
' > tg-"$1".txt