# read_yn <prompt>
-function read_yn() {
+read_yn() {
local prompt="$1"
while true; do
read -e -n 1 -p "$prompt" reply
# diskusage <path>: prints size in MB
-function diskusage() {
+diskusage() {
local path="$1"
read size dummy < <( du -sm "$path" )
echo "$size"
# diskfree <minimum size in MB>
-function diskfree() {
+diskfree() {
local size="$1"
echo -n "Checking free diskspace:"
(( free = `stat -f -c '%a / 2048 * ( %s / 512 )' $tmp ` ))
# extract_bin <file> <expected_min_size> <dest>
-function extract_bin() {
+extract_bin() {
local file="$1"
local expected_min_size="$2"
local dest="$3"
}
-function read_maintainer_info() {
+read_maintainer_info() {
if [ -z "$maintainer_name" ]; then
if [ -n "$DEBFULLNAME" ]; then
maintainer_name="$DEBFULLNAME"
}
# provide the architecture for evaluation by plugins
-function get_architecture() {
+get_architecture() {
echo
export DEB_BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)