diff options
Diffstat (limited to 'pdebuild-internal')
-rw-r--r-- | pdebuild-internal | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pdebuild-internal b/pdebuild-internal index 2d42145..ce624b2 100644 --- a/pdebuild-internal +++ b/pdebuild-internal @@ -38,10 +38,15 @@ export LOGNAME=root cd "$1" shift; +# dummy function that does enough, real one is defined elsewhere. +function log() { + echo "$*" +} + while [ -n "$1" ]; do case "$1" in --debbuildopts) - echo "Setting DEBBUILDOPTS=$2" + log "I: Setting DEBBUILDOPTS=$2" DEBBUILDOPTS="$2" shift; shift; ;; @@ -63,7 +68,7 @@ while [ -n "$1" ]; do shift; ;; --*) - echo "Error: Unknown option [$1] was specified " >&2 + log "E: Unknown option [$1] was specified " exit 1; ;; *) |