Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mats cronqvist committed Mar 10, 2011
1 parent ddd81e0 commit 3199250
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 121 deletions.
58 changes: 29 additions & 29 deletions priv/bin/dtop
Expand Up @@ -2,7 +2,7 @@


usage(){ usage(){
cat <<- end cat <<- end
usage: `basename $0` [-setcookie <cookie>] [-nocookie] [-nettick <tick>] usage: `basename $0` [-setcookie <cookie>] [-nocookie] [-nettick <tick>]
[-win] [-dbg] [-vsn <OTP version>] [-proxy proxynode] nodename [-win] [-dbg] [-vsn <OTP version>] [-proxy proxynode] nodename
end end
exit exit
Expand All @@ -21,49 +21,49 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
ERL=erl ERL=erl
START="-s dtop start" START="-s dtop start"


while [ -n "$1" ] while [ -n "$1" ]
do do
case $1 in case $1 in
"-help"|"-h"|"-?") "-help"|"-h"|"-?")
usage usage
;; ;;
"-dbg") "-dbg")
;; ;;
"-win") "-win")
WIN="xterm -sb -sl 9999 -bg gold -fg black -e" WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
;; ;;
"-vsn"|"-version") "-vsn"|"-version")
shift shift
VSN="+R "$1 VSN="+R "$1
;; ;;
"-nettick"|"-tick") "-nettick"|"-tick")
shift shift
nettick="-kernel net_ticktime $1" nettick="-kernel net_ticktime $1"
;; ;;
"-cookie"|"-setcookie") "-cookie"|"-setcookie")
shift shift
cookie="-setcookie $1" cookie="-setcookie $1"
;; ;;
"-nocookie") "-nocookie")
cookie="" cookie=""
;; ;;
"-proxy") "-proxy")
shift shift
proxy="$1" proxy="$1"
;; ;;
*) *)
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
TARG=$1 TARG=$1
else else
usage usage
fi fi
;; ;;
esac esac
shift shift
done done


if [ -z "$TARG" ]; then if [ -z "$TARG" ]; then
usage; usage;
else else
START="$START $TARG $proxy" START="$START $TARG $proxy"
fi fi
Expand Down
56 changes: 28 additions & 28 deletions priv/bin/gperf
Expand Up @@ -2,7 +2,7 @@


usage(){ usage(){
cat <<- end cat <<- end
usage: `basename $0` [-setcookie <cookie>] [-nocookie] [-nettick <tick>] usage: `basename $0` [-setcookie <cookie>] [-nocookie] [-nettick <tick>]
[-pa <path>] [-win] [-dbg] [-vsn <OTP version>] [-proxy proxy] [node] [-pa <path>] [-win] [-dbg] [-vsn <OTP version>] [-proxy proxy] [node]
end end
exit exit
Expand All @@ -21,9 +21,9 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
PATHS="" PATHS=""
for p in $SPATH/gtknode-*/ebin $SPATH/eper-*/ebin; do for p in $SPATH/gtknode-*/ebin $SPATH/eper-*/ebin; do
if [ "${p: -7}" == "-*/ebin" ]; then if [ "${p: -7}" == "-*/ebin" ]; then
echo "Can't expand $p.${p: -7}" echo "Can't expand $p.${p: -7}"
else else
PATHS=$PATHS" -pa $p" PATHS=$PATHS" -pa $p"
fi fi
done done


Expand All @@ -33,46 +33,46 @@ START="-s gperf ni"
HALT="-s erlang halt" HALT="-s erlang halt"
XTRA="" XTRA=""


while [ -n "$1" ] while [ -n "$1" ]
do do
case $1 in case $1 in
"-help"|"-h"|"-?") "-help"|"-h"|"-?")
usage usage
;; ;;
"-win") "-win")
WIN="xterm -sb -sl 9999 -bg gold -fg black -e" WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
START="-s gperf start" START="-s gperf start"
HALT="" HALT=""
detach="" detach=""
;; ;;
"-dbg") "-dbg")
START="-s gperf start" START="-s gperf start"
HALT="" HALT=""
detach="" detach=""
;; ;;
"-vsn"|"-version") "-vsn"|"-version")
shift shift
VSN="+R $1" VSN="+R $1"
;; ;;
"-nettick"|"-tick") "-nettick"|"-tick")
shift shift
nettick="-kernel net_ticktime $1" nettick="-kernel net_ticktime $1"
;; ;;
"-cookie"|"-setcookie") "-cookie"|"-setcookie")
shift shift
cookie="-setcookie $1" cookie="-setcookie $1"
;; ;;
"-nocookie") "-nocookie")
cookie="" cookie=""
;; ;;
"-pa") "-pa")
shift shift
XTRA="-pa $1 $XTRA" XTRA="-pa $1 $XTRA"
;; ;;
"-proxy") "-proxy")
shift shift
proxy="$1" proxy="$1"
;; ;;
"-*") "-*")
echo dollar_one $1 echo dollar_one $1
;; ;;
Expand Down
58 changes: 29 additions & 29 deletions priv/bin/ntop
Expand Up @@ -2,7 +2,7 @@


usage(){ usage(){
cat <<- end cat <<- end
usage: [-setcookie <cookie>] [-nocookie] [-nettick <tick>] usage: [-setcookie <cookie>] [-nocookie] [-nettick <tick>]
[-win] [-dbg] [-vsn <OTP version>] [-proxy proxynode] nodename [-win] [-dbg] [-vsn <OTP version>] [-proxy proxynode] nodename
end end
exit exit
Expand All @@ -23,49 +23,49 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
ERL=erl ERL=erl
START="-s $script start" START="-s $script start"


while [ -n "$1" ] while [ -n "$1" ]
do do
case $1 in case $1 in
"-help"|"-h"|"-?") "-help"|"-h"|"-?")
usage usage
;; ;;
"-dbg") "-dbg")
;; ;;
"-win") "-win")
WIN="xterm -sb -sl 9999 -bg gold -fg black -e" WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
;; ;;
"-vsn"|"-version") "-vsn"|"-version")
shift shift
VSN="+R "$1 VSN="+R "$1
;; ;;
"-nettick"|"-tick") "-nettick"|"-tick")
shift shift
nettick="-kernel net_ticktime $1" nettick="-kernel net_ticktime $1"
;; ;;
"-cookie"|"-setcookie") "-cookie"|"-setcookie")
shift shift
cookie="-setcookie $1" cookie="-setcookie $1"
;; ;;
"-nocookie") "-nocookie")
cookie="" cookie=""
;; ;;
"-proxy") "-proxy")
shift shift
proxy="$1" proxy="$1"
;; ;;
*) *)
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
TARG=$1 TARG=$1
else else
usage usage
fi fi
;; ;;
esac esac
shift shift
done done


if [ -z "$TARG" ]; then if [ -z "$TARG" ]; then
usage; usage;
else else
START="$START $TARG $proxy" START="$START $TARG $proxy"
fi fi
Expand Down
32 changes: 16 additions & 16 deletions priv/bin/redbug
Expand Up @@ -15,33 +15,33 @@ VSN=""
XTRA="" XTRA=""
echo="" echo=""


while [ -n "$1" ] while [ -n "$1" ]
do do
case $1 in case $1 in
"--help"|"-h"|"-?") "--help"|"-h"|"-?")
usage usage
;; ;;
"-vsn"|"-version") "-vsn"|"-version")
VSN="+R "$2 VSN="+R "$2
shift shift
;; ;;
"-nettick"|"-tick") "-nettick"|"-tick")
nettick="-kernel net_ticktime $2" nettick="-kernel net_ticktime $2"
shift shift
;; ;;
"-cookie"|"-setcookie") "-cookie"|"-setcookie")
cookie="-setcookie $2" cookie="-setcookie $2"
shift shift
;; ;;
"-debug") "-debug")
echo=echo echo=echo
;; ;;
"-nocookie") "-nocookie")
cookie="" cookie=""
;; ;;
"-*") "-*")
echo unrecognized flag $1 echo unrecognized flag $1
usage usage
;; ;;
*) *)
XTRA=" $XTRA $1" XTRA=" $XTRA $1"
Expand All @@ -53,7 +53,7 @@ done
if [ -z "$XTRA" ]; then usage; fi if [ -z "$XTRA" ]; then usage; fi


PATHS="-pa $self/ebin" PATHS="-pa $self/ebin"
name="redbug_"$$ name="redbug_"$$
DISTR="-noshell -hidden -sname $name $cookie $nettick" DISTR="-noshell -hidden -sname $name $cookie $nettick"
START="-run redbug unix" START="-run redbug unix"


Expand Down
36 changes: 18 additions & 18 deletions priv/bin/sherk
Expand Up @@ -26,35 +26,35 @@ detach="-detached"
VSN="" VSN=""
START="-s sherk ni -s erlang halt" START="-s sherk ni -s erlang halt"


while [ -n "$1" ] while [ -n "$1" ]
do do
case $1 in case $1 in
"-help"|"-h"|"-?") "-help"|"-h"|"-?")
usage usage
;; ;;
"-win") "-win")
WIN="xterm -sb -sl 9999 -bg gold -fg black -e" WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
START="-s sherk go" START="-s sherk go"
detach="" detach=""
;; ;;
"-vsn"|"-version") "-vsn"|"-version")
VSN="+R "$2 VSN="+R "$2
shift shift
;; ;;
"-nettick"|"-tick") "-nettick"|"-tick")
nettick="-kernel net_ticktime $2" nettick="-kernel net_ticktime $2"
shift shift
;; ;;
"-cookie"|"-setcookie") "-cookie"|"-setcookie")
cookie="-setcookie $2" cookie="-setcookie $2"
shift shift
;; ;;
"-nocookie") "-nocookie")
cookie="" cookie=""
;; ;;
*) *)
usage usage
;; ;;
esac esac
shift shift
done done
Expand Down
2 changes: 1 addition & 1 deletion src/redbug.erl
Expand Up @@ -117,7 +117,7 @@ unix([Node,Time,Msgs,Trc,Proc]) ->
try try
Cnf = #cnf{time = to_int(Time), Cnf = #cnf{time = to_int(Time),
msgs = to_int(Msgs), msgs = to_int(Msgs),
trc = to_term(Trc), trc = try to_term(Trc) catch _:_ -> Trc end,
proc = to_atom(Proc), proc = to_atom(Proc),
target = to_atom(Node)}, target = to_atom(Node)},
self() ! {start,Cnf}, self() ! {start,Cnf},
Expand Down

0 comments on commit 3199250

Please sign in to comment.