abuild: style fixes

This commit is contained in:
Natanael Copa 2009-01-26 13:32:44 +00:00
parent e609357a1c
commit 044359f0ad
2 changed files with 9 additions and 9 deletions

2
abuild
View File

@ -164,7 +164,7 @@ unpack() {
msg "Unpacking $s..."
unzip "$s" -d "$srcdir" || return 1;;
*)
error "Archive not supported"
error "${s##*/}: Archive not supported"
return 1;;
esac
done

View File

@ -13,22 +13,22 @@ fi
# functions
msg() {
local prompt="$GREEN>>>${NORMAL}"
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
[ -z "$quiet" ] && printf "${prompt} ${fake}${name}: $@\n" >&2
[ -z "$quiet" ] && printf "${prompt} ${name}${fake}: $@\n" >&2
}
warning() {
local prompt="${YELLOW}>>> WARNING: ${NORMAL}"
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
local prompt="${YELLOW}>>> WARNING:${NORMAL}"
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
printf "${prompt} ${fake}${name}: $@\n" >&2
printf "${prompt} ${name}${fake}: $@\n" >&2
}
error() {
local prompt="${RED}>>> ERROR: ${NORMAL}"
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
local prompt="${RED}>>> ERROR:${NORMAL}"
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
printf "${prompt} ${fake}${name}: $@\n" >&2
printf "${prompt} ${name}${fake}: $@\n" >&2
}