Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/asp.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-08-04 23:30:02 -0400
committerDave Reisner <dreisner@archlinux.org>2014-08-04 23:30:02 -0400
commit1f5db8721297ddaecddcb9a94f9225aa45fff51d (patch)
treeb6c740b8682462e11db02835c738217953431b4b /asp.in
parent640958d36225cbf6d482e193ed4d7d3d44a01d1d (diff)
Break out a util.inc.sh
Diffstat (limited to 'asp.in')
-rw-r--r--asp.in30
1 files changed, 1 insertions, 29 deletions
diff --git a/asp.in b/asp.in
index 3ac8021..b33d5fb 100644
--- a/asp.in
+++ b/asp.in
@@ -6,38 +6,10 @@ OPT_ARCH=$(uname -m)
OPT_FORCE=0
: ${ASPROOT:=$HOME/asp}
+m4_include(util.inc.sh)
m4_include(remote.inc.sh)
m4_include(package.inc.sh)
-log_meta() {
- printf "$1 $2\n" "${@:3}"
-}
-
-log_error() {
- log_meta 'error:' "$@" >&2
-}
-
-log_fatal() {
- log_error "$@"
- exit 1
-}
-
-log_warning() {
- log_meta 'warning:' "$@" >&2
-}
-
-log_info() {
- log_meta '==>' "$@"
-}
-
-map() {
- local map_r=0
- for _ in "${@:2}"; do
- "$1" "$_" || (( $# > 255 ? map_r=1 : ++r ))
- done
- return $map_r
-}
-
usage() {
cat<<EOF
asp [OPTIONS...] {COMMAND} ...