diff options
author | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
commit | c8b6342d3c2a167dec16931815926e9e4387e7ef (patch) | |
tree | 80d3ec6ea074462b30639168113def880476dad6 /bin | |
parent | 741f510ce758f77ed5193256fb693a09a7daecce (diff) | |
download | plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2 plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip |
Many small edits.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/9l | 13 | ||||
-rwxr-xr-x | bin/doctype | 2 | ||||
-rwxr-xr-x | bin/g | 2 | ||||
-rwxr-xr-x | bin/lc | 2 | ||||
-rwxr-xr-x | bin/man | 12 |
5 files changed, 20 insertions, 11 deletions
@@ -91,6 +91,7 @@ then do eval "have$i() { false; }" done + havethread() { false; } # now find correct order libsl="" @@ -129,6 +130,12 @@ then fi libsl="$libsl -l9" + # cycle: lib9 expects p9main, which is defined in libthread. oops. + if $havethread + then + libsl="$libsl -lthread" + fi + if [ "x$needdraw" = xtrue ] then if [ "x$X11" = "x" ] @@ -194,9 +201,11 @@ if $verbose then echo $ld -L$PLAN9/lib "$@" $libsl $extralibs fi -if ! $ld -L$PLAN9/lib "$@" $libsl $extralibs +if $ld -L$PLAN9/lib "$@" $libsl $extralibs then + exit 0 +else rm -f $target exit 1 fi -exit 0 + diff --git a/bin/doctype b/bin/doctype index c55244cb..e36c3caf 100755 --- a/bin/doctype +++ b/bin/doctype @@ -24,7 +24,7 @@ ifs=' '{ files=`{echo $*} } -9grep -h '\$LIST|\|reference|^\.(EQ|TS|\[|PS|IS|GS|G1|GD|PP|BM|LP|BP|PI|cstart|begin|TH...)|^\.P$' $* | +9 grep -h '\$LIST|\|reference|^\.(EQ|TS|\[|PS|IS|GS|G1|GD|PP|BM|LP|BP|PI|cstart|begin|TH...)|^\.P$' $* | sort -u | awk ' BEGIN { files = "'$files'" } @@ -34,4 +34,4 @@ case $# in files="$@" esac -exec grep -n $flags -- "$pattern" $files /dev/null +exec 9 grep -n $flags -- "$pattern" $files /dev/null @@ -1,3 +1,3 @@ #!/bin/sh -ls "$@" | mc +9 ls "$@" | mc @@ -60,11 +60,11 @@ if(~ $#sec 0) { } ix=$S/man$sec/INDEX if(~ $#* 1) pat='^'^$1^' ' -if not pat='^('^`{echo $* | 9sed 's/ /|/g'}^') ' +if not pat='^('^`{echo $* | 9 sed 's/ /|/g'}^') ' fils=() for(i in $S/man$sec){ - if(/bin/test -f $i/INDEX){ - try=`{grep $pat $i/INDEX | 9sed 's/^[^ ]* //'} + if(test -f $i/INDEX){ + try=`{grep $pat $i/INDEX | 9 sed 's/^[^ ]* //'} if(! ~ $#try 0) fils=($fils $i/$try) } @@ -75,7 +75,7 @@ if(~ $#fils 0) { for(i) { for(n in $sec) { try=$S/man$n/$i.$n* - if (/bin/test -f $try) + if (test -f $try) fils=($fils $try) } } @@ -85,7 +85,7 @@ if(~ $#fils 0) { } } for(i in $fils) { - if(! /bin/test -f $i) + if(! test -f $i) echo need $i >[1=2] if not { switch($cmd) { @@ -99,7 +99,7 @@ for(i in $fils) { roff t $i |tr2post |psfonts |page case n - roff n $i | 9sed ' + roff n $i | 9 sed ' ${ /^$/p } |