projects
/
m6w6
/
btr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
OSX compatibility
[m6w6/btr]
/
share
/
btr
/
btrc.sh
diff --git
a/share/btr/btrc.sh
b/share/btr/btrc.sh
index 8a38bb348ca4234211dda826ad600041defc0849..a23031859e4c56461fa77bb498c5980a765a43db 100755
(executable)
--- a/
share/btr/btrc.sh
+++ b/
share/btr/btrc.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-function btrc
-
parseargs {
+function btrc
_
parseargs {
eval set -- "$BTR_EXTRA_ARGS"
while test $# -gt 0
do
eval set -- "$BTR_EXTRA_ARGS"
while test $# -gt 0
do
@@
-30,13
+30,13
@@
function btrc-parseargs {
done
}
done
}
-function btrc
-
setup {
- btrc
-
parseargs
+function btrc
_
setup {
+ btrc
_
parseargs
if test -z "$BTR_BUILD"
then
if test -z "$BTR_BUILD"
then
- btr
-
banner
- btr
-
help
+ btr
_
banner
+ btr
_
help
fi
if test -z "$BTR_ACTION"
fi
if test -z "$BTR_ACTION"
@@
-44,8
+44,8
@@
function btrc-setup {
BTR_ACTION=status
fi
BTR_ACTION=status
fi
- btr
-setup-
rundir
- btr
-setup-
verbosity false
+ btr
_setup_
rundir
+ btr
_setup_
verbosity false
BTR_PIDFILE="$BTR_RUNDIR/$BTR_BUILD.pid"
BTR_LOGFILE="$BTR_RUNDIR/$BTR_BUILD.log"
BTR_PIDFILE="$BTR_RUNDIR/$BTR_BUILD.pid"
BTR_LOGFILE="$BTR_RUNDIR/$BTR_BUILD.log"
@@
-63,9
+63,9
@@
function btrc-setup {
error "Could not find btrd pid file of '$BTR_BUILD' in $BTR_RUNDIR."
fi
}
error "Could not find btrd pid file of '$BTR_BUILD' in $BTR_RUNDIR."
fi
}
-export -f btrc
-
setup
+export -f btrc
_
setup
-function btrc
-
signal {
+function btrc
_
signal {
local sig=$1
local pid=$(cat "$BTR_PIDFILE")
kill -s $sig $pid
local sig=$1
local pid=$(cat "$BTR_PIDFILE")
kill -s $sig $pid
@@
-82,7
+82,7
@@
function btrc-signal {
;;
esac
}
;;
esac
}
-export -f btrc
-
signal
+export -f btrc
_
signal
# vim: noet
# vim: noet