aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-checkparams
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2009-02-26 12:53:15 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2009-02-26 14:33:11 +0900
commit06a64a8ce3cbe0e9b7079114f821083ca3c3a8da (patch)
tree516660a2366b18b40d1a823ba1ec188a39a59634 /pdebuild-checkparams
parent37597b2cb6439cce9571de83218586b0a99e6ea9 (diff)
downloadpbuilder-06a64a8ce3cbe0e9b7079114f821083ca3c3a8da.tar
pbuilder-06a64a8ce3cbe0e9b7079114f821083ca3c3a8da.tar.gz
refactor to use 'log' function rather than using 'echo' directly.
First cut into doing this, hopefully we're not breaking anything.
Diffstat (limited to 'pdebuild-checkparams')
-rw-r--r--pdebuild-checkparams10
1 files changed, 5 insertions, 5 deletions
diff --git a/pdebuild-checkparams b/pdebuild-checkparams
index 2c003d0..e9a59af 100644
--- a/pdebuild-checkparams
+++ b/pdebuild-checkparams
@@ -33,7 +33,7 @@ while [ -n "$1" ]; do
BUILDRESULT=$(readlink -f "$2");
else
BUILDRESULT="$2"
- echo "W: Build-result Directory $2 does not exist" >&2
+ log "W: Build-result Directory $2 does not exist"
# warn, but make it progress.
fi
else
@@ -47,7 +47,7 @@ while [ -n "$1" ]; do
;;
--configfile)
if [ ! -f "$2" ]; then
- echo "E: Config file $2 does not exist" >&2
+ log "E: Config file $2 does not exist"
exit 1
fi
. "$2";
@@ -85,14 +85,14 @@ while [ -n "$1" ]; do
shift;
;;
--logfile)
- echo " -> Logging to $2"
+ log "I: Logging to $2"
PBUILDER_BUILD_LOGFILE=$(readlink -f $2)
exec > >(tee "$2");
exec 2>&1
shift; shift;
;;
--pbuilder)
- echo " -> using $2 as pbuilder"
+ log "I: using $2 as pbuilder"
PDEBUILD_PBUILDER="$2"
shift; shift;
;;
@@ -104,7 +104,7 @@ while [ -n "$1" ]; do
break;
;;
--*)
- echo "Error: Unknown option [$1] was specified " >&2
+ log "E: Unknown option [$1] was specified "
exit 1;
;;
*)