From 2af2c33eec35199ca010a3fefdaecbfcb27a9e3a Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Oct 2010 21:55:53 -0500 Subject: [PATCH] script/makepkg: use shlib --- script/makepkg | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/script/makepkg b/script/makepkg index f6c5cd6..2a8ef33 100755 --- a/script/makepkg +++ b/script/makepkg @@ -1,3 +1,9 @@ +#!/bin/sh + +# Load shlib and modules +_root="$(dirname "${0}")"; . "${_root}/lib/env.sh" +want log root + # Dump a list of leaf ports from a working system # Leaf ports are ports that have nothing depending upon them # These are generally the top-level ports; everything else should @@ -49,16 +55,6 @@ TERM=${TERM} # Tempvars unset _port_config_recursive_cache -######## -# -# Boilerplate functions -# -######## - -meh() { printf " \033[1;32m*\033[0m %s\n" "${*}" >&2; } -omg() { printf " \033[1;33m*\033[0m %s\n" "${*}" >&2; } -wtf() { printf " \033[1;31m*\033[0m %s\n" "${*}" >&2; exit 1; } - ######## # # Chroot handling -- 2.45.0