##// 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 hg_commands=`hg --debug help | \
38 hg_commands=`hg --debug help | \
39 sed -e '1,/^list of commands:/d' \
39 sed -e '1,/^list of commands:/d' \
40 -e '/^global options:/,$d' \
40 -e '/^global options:/,$d' \
41 -e '/^ [^ ]/!d; s/[,:]//g;' |
41 -e '/^ [^ ]/!d; s/[,:]//g;' | \
42 xargs -n5 | \
42 xargs -n5 | \
43 sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
43 sed -e '$!s/$/ \\\\/g; 2,$s/^ */ /g'`
44
44
45 hg_global_options=`hg -v help | \
45 hg_global_options=`hg -v help | \
46 sed -e '1,/global/d;/^ *-/!d; s/ [^- ].*//' | \
46 sed -e '1,/global/d;/^ *-/!d; s/ [^- ].*//' | \
47 xargs -n5 | \
47 sed -e 's/ *$//; $!s/$/ \\\\/g; 2,$s/^ */ /g'`
48 sed -e '$!s/$/ \\\\/g; 2,$s/^ \{0,\}/ /g'`
49
48
50 hg_version=`hg version | sed -e '1q'`
49 hg_version=`hg version | sed -e '1q'`
51
50
General Comments 0
You need to be logged in to leave comments. Login now