##// END OF EJS Templates
tcsh_completion_build.sh: fixed error caused by xargs on Linux
TK Soh -
r1157:6e662350 default
parent child Browse files
Show More
@@ -38,14 +38,13 b' tcsh_file=${1-tcsh_completion}'
38 38 hg_commands=`hg --debug help | \
39 39 sed -e '1,/^list of commands:/d' \
40 40 -e '/^global options:/,$d' \
41 -e '/^ [^ ]/!d; s/[,:]//g;' |
41 -e '/^ [^ ]/!d; s/[,:]//g;' | \
42 42 xargs -n5 | \
43 sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
43 sed -e '$!s/$/ \\\\/g; 2,$s/^ */ /g'`
44 44
45 45 hg_global_options=`hg -v help | \
46 46 sed -e '1,/global/d;/^ *-/!d; s/ [^- ].*//' | \
47 xargs -n5 | \
48 sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
47 sed -e 's/ *$//; $!s/$/ \\\\/g; 2,$s/^ */ /g'`
49 48
50 49 hg_version=`hg version | sed -e '1q'`
51 50
General Comments 0
You need to be logged in to leave comments. Login now