--- a/contrib/tcsh_completion_build.sh Tue Aug 30 11:16:31 2005 +0200
+++ b/contrib/tcsh_completion_build.sh Tue Aug 30 11:17:20 2005 +0200
@@ -38,14 +38,13 @@
hg_commands=`hg --debug help | \
sed -e '1,/^list of commands:/d' \
-e '/^global options:/,$d' \
- -e '/^ [^ ]/!d; s/[,:]//g;' |
+ -e '/^ [^ ]/!d; s/[,:]//g;' | \
xargs -n5 | \
- sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
+ sed -e '$!s/$/ \\\\/g; 2,$s/^ */ /g'`
hg_global_options=`hg -v help | \
sed -e '1,/global/d;/^ *-/!d; s/ [^- ].*//' | \
- xargs -n5 | \
- sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
+ sed -e 's/ *$//; $!s/$/ \\\\/g; 2,$s/^ */ /g'`
hg_version=`hg version | sed -e '1q'`