projects
/
m6w6
/
btr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
btr-hook and some generalizations
[m6w6/btr]
/
share
/
btr
/
opt.awk
diff --git a/share/btr/opt.awk
b/share/btr/opt.awk
new file mode 100755
(executable)
index 0000000..
cdc0b76
--- /dev/null
+++ b/
share/btr/opt.awk
@@ -0,0
+1,19
@@
+#!/bin/awk -f
+
+BEGIN {
+ FS="\t"
+}
+
+{
+ sub("[[:space:]]*#.*", "");
+ if (NF) {
+ if (sub("::", "[=<", $2)) {
+ $2 = $2">]"
+ }
+ if (sub(":", "=<", $2)) {
+ $2 = $2">"
+ }
+ sub(":+", "", $1)
+ printf " -%s, --%-24s %s\n", $1, $2, $3
+ }
+}