mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-04-16 20:17:08 +00:00
abuild: style fixes
This commit is contained in:
parent
e609357a1c
commit
044359f0ad
2
abuild
2
abuild
@ -164,7 +164,7 @@ unpack() {
|
|||||||
msg "Unpacking $s..."
|
msg "Unpacking $s..."
|
||||||
unzip "$s" -d "$srcdir" || return 1;;
|
unzip "$s" -d "$srcdir" || return 1;;
|
||||||
*)
|
*)
|
||||||
error "Archive not supported"
|
error "${s##*/}: Archive not supported"
|
||||||
return 1;;
|
return 1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
16
functions.sh
16
functions.sh
@ -13,22 +13,22 @@ fi
|
|||||||
# functions
|
# functions
|
||||||
msg() {
|
msg() {
|
||||||
local prompt="$GREEN>>>${NORMAL}"
|
local prompt="$GREEN>>>${NORMAL}"
|
||||||
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
|
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
|
||||||
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
||||||
[ -z "$quiet" ] && printf "${prompt} ${fake}${name}: $@\n" >&2
|
[ -z "$quiet" ] && printf "${prompt} ${name}${fake}: $@\n" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
warning() {
|
warning() {
|
||||||
local prompt="${YELLOW}>>> WARNING: ${NORMAL}"
|
local prompt="${YELLOW}>>> WARNING:${NORMAL}"
|
||||||
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
|
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
|
||||||
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
||||||
printf "${prompt} ${fake}${name}: $@\n" >&2
|
printf "${prompt} ${name}${fake}: $@\n" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
local prompt="${RED}>>> ERROR: ${NORMAL}"
|
local prompt="${RED}>>> ERROR:${NORMAL}"
|
||||||
local fake="${FAKEROOTKEY:+${BLUE}(fakeroot)${NORMAL} }"
|
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
|
||||||
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
||||||
printf "${prompt} ${fake}${name}: $@\n" >&2
|
printf "${prompt} ${name}${fake}: $@\n" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user