Skip to content
Browse files

whitespace

  • Loading branch information...
1 parent ddd81e0 commit 31992502d9d0e934f5aec61f32b67ad4b23e04ec mats cronqvist committed Mar 10, 2011
Showing with 121 additions and 121 deletions.
  1. +29 −29 priv/bin/dtop
  2. +28 −28 priv/bin/gperf
  3. +29 −29 priv/bin/ntop
  4. +16 −16 priv/bin/redbug
  5. +18 −18 priv/bin/sherk
  6. +1 −1 src/redbug.erl
View
58 priv/bin/dtop
@@ -2,7 +2,7 @@
usage(){
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
end
exit
@@ -21,49 +21,49 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
ERL=erl
START="-s dtop start"
-while [ -n "$1" ]
+while [ -n "$1" ]
do
case $1 in
"-help"|"-h"|"-?")
- usage
- ;;
+ usage
+ ;;
"-dbg")
- ;;
+ ;;
"-win")
- WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
- ;;
+ WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
+ ;;
"-vsn"|"-version")
- shift
- VSN="+R "$1
- ;;
+ shift
+ VSN="+R "$1
+ ;;
"-nettick"|"-tick")
- shift
- nettick="-kernel net_ticktime $1"
- ;;
+ shift
+ nettick="-kernel net_ticktime $1"
+ ;;
"-cookie"|"-setcookie")
- shift
- cookie="-setcookie $1"
- ;;
+ shift
+ cookie="-setcookie $1"
+ ;;
"-nocookie")
- cookie=""
- ;;
+ cookie=""
+ ;;
"-proxy")
- shift
- proxy="$1"
- ;;
+ shift
+ proxy="$1"
+ ;;
*)
- if [ $# -eq 1 ]; then
- TARG=$1
- else
- usage
- fi
- ;;
+ if [ $# -eq 1 ]; then
+ TARG=$1
+ else
+ usage
+ fi
+ ;;
esac
shift
done
-if [ -z "$TARG" ]; then
- usage;
+if [ -z "$TARG" ]; then
+ usage;
else
START="$START $TARG $proxy"
fi
View
56 priv/bin/gperf
@@ -2,7 +2,7 @@
usage(){
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]
end
exit
@@ -21,9 +21,9 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
PATHS=""
for p in $SPATH/gtknode-*/ebin $SPATH/eper-*/ebin; do
if [ "${p: -7}" == "-*/ebin" ]; then
- echo "Can't expand $p.${p: -7}"
+ echo "Can't expand $p.${p: -7}"
else
- PATHS=$PATHS" -pa $p"
+ PATHS=$PATHS" -pa $p"
fi
done
@@ -33,46 +33,46 @@ START="-s gperf ni"
HALT="-s erlang halt"
XTRA=""
-while [ -n "$1" ]
+while [ -n "$1" ]
do
case $1 in
"-help"|"-h"|"-?")
- usage
- ;;
+ usage
+ ;;
"-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"
HALT=""
- detach=""
- ;;
+ detach=""
+ ;;
"-dbg")
START="-s gperf start"
HALT=""
- detach=""
- ;;
+ detach=""
+ ;;
"-vsn"|"-version")
- shift
- VSN="+R $1"
- ;;
+ shift
+ VSN="+R $1"
+ ;;
"-nettick"|"-tick")
- shift
- nettick="-kernel net_ticktime $1"
- ;;
+ shift
+ nettick="-kernel net_ticktime $1"
+ ;;
"-cookie"|"-setcookie")
- shift
- cookie="-setcookie $1"
- ;;
+ shift
+ cookie="-setcookie $1"
+ ;;
"-nocookie")
- cookie=""
- ;;
+ cookie=""
+ ;;
"-pa")
- shift
- XTRA="-pa $1 $XTRA"
- ;;
+ shift
+ XTRA="-pa $1 $XTRA"
+ ;;
"-proxy")
- shift
- proxy="$1"
- ;;
+ shift
+ proxy="$1"
+ ;;
"-*")
echo dollar_one $1
;;
View
58 priv/bin/ntop
@@ -2,7 +2,7 @@
usage(){
cat <<- end
-usage: [-setcookie <cookie>] [-nocookie] [-nettick <tick>]
+usage: [-setcookie <cookie>] [-nocookie] [-nettick <tick>]
[-win] [-dbg] [-vsn <OTP version>] [-proxy proxynode] nodename
end
exit
@@ -23,49 +23,49 @@ while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
ERL=erl
START="-s $script start"
-while [ -n "$1" ]
+while [ -n "$1" ]
do
case $1 in
"-help"|"-h"|"-?")
- usage
- ;;
+ usage
+ ;;
"-dbg")
- ;;
+ ;;
"-win")
- WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
- ;;
+ WIN="xterm -sb -sl 9999 -bg gold -fg black -e"
+ ;;
"-vsn"|"-version")
- shift
- VSN="+R "$1
- ;;
+ shift
+ VSN="+R "$1
+ ;;
"-nettick"|"-tick")
- shift
- nettick="-kernel net_ticktime $1"
- ;;
+ shift
+ nettick="-kernel net_ticktime $1"
+ ;;
"-cookie"|"-setcookie")
- shift
- cookie="-setcookie $1"
- ;;
+ shift
+ cookie="-setcookie $1"
+ ;;
"-nocookie")
- cookie=""
- ;;
+ cookie=""
+ ;;
"-proxy")
- shift
- proxy="$1"
- ;;
+ shift
+ proxy="$1"
+ ;;
*)
- if [ $# -eq 1 ]; then
- TARG=$1
- else
- usage
- fi
- ;;
+ if [ $# -eq 1 ]; then
+ TARG=$1
+ else
+ usage
+ fi
+ ;;
esac
shift
done
-if [ -z "$TARG" ]; then
- usage;
+if [ -z "$TARG" ]; then
+ usage;
else
START="$START $TARG $proxy"
fi
View
32 priv/bin/redbug
@@ -15,33 +15,33 @@ VSN=""
XTRA=""
echo=""
-while [ -n "$1" ]
+while [ -n "$1" ]
do
case $1 in
"--help"|"-h"|"-?")
- usage
- ;;
+ usage
+ ;;
"-vsn"|"-version")
- VSN="+R "$2
- shift
- ;;
+ VSN="+R "$2
+ shift
+ ;;
"-nettick"|"-tick")
- nettick="-kernel net_ticktime $2"
- shift
- ;;
+ nettick="-kernel net_ticktime $2"
+ shift
+ ;;
"-cookie"|"-setcookie")
- cookie="-setcookie $2"
- shift
- ;;
+ cookie="-setcookie $2"
+ shift
+ ;;
"-debug")
echo=echo
;;
"-nocookie")
- cookie=""
- ;;
+ cookie=""
+ ;;
"-*")
echo unrecognized flag $1
- usage
+ usage
;;
*)
XTRA=" $XTRA $1"
@@ -53,7 +53,7 @@ done
if [ -z "$XTRA" ]; then usage; fi
PATHS="-pa $self/ebin"
-name="redbug_"$$
+name="redbug_"$$
DISTR="-noshell -hidden -sname $name $cookie $nettick"
START="-run redbug unix"
View
36 priv/bin/sherk
@@ -26,35 +26,35 @@ detach="-detached"
VSN=""
START="-s sherk ni -s erlang halt"
-while [ -n "$1" ]
+while [ -n "$1" ]
do
case $1 in
"-help"|"-h"|"-?")
- usage
- ;;
+ usage
+ ;;
"-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"
- detach=""
- ;;
+ detach=""
+ ;;
"-vsn"|"-version")
- VSN="+R "$2
- shift
- ;;
+ VSN="+R "$2
+ shift
+ ;;
"-nettick"|"-tick")
- nettick="-kernel net_ticktime $2"
- shift
- ;;
+ nettick="-kernel net_ticktime $2"
+ shift
+ ;;
"-cookie"|"-setcookie")
- cookie="-setcookie $2"
- shift
- ;;
+ cookie="-setcookie $2"
+ shift
+ ;;
"-nocookie")
- cookie=""
- ;;
+ cookie=""
+ ;;
*)
usage
- ;;
+ ;;
esac
shift
done
View
2 src/redbug.erl
@@ -117,7 +117,7 @@ unix([Node,Time,Msgs,Trc,Proc]) ->
try
Cnf = #cnf{time = to_int(Time),
msgs = to_int(Msgs),
- trc = to_term(Trc),
+ trc = try to_term(Trc) catch _:_ -> Trc end,
proc = to_atom(Proc),
target = to_atom(Node)},
self() ! {start,Cnf},

0 comments on commit 3199250

Please sign in to comment.
Something went wrong with that request. Please try again.