aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-08 14:18:23 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-08 14:18:23 +0000
commitcc9353ea6a36d532766a20de86c64db2e102b402 (patch)
treebf4b231b92f8e8ec3c6f6e877f3c57b7f34855c8
parentf2f37b2053fbb350e993f9399dc8bbaac8b9f490 (diff)
downloadpaludis-cc9353ea6a36d532766a20de86c64db2e102b402.tar.gz
paludis-cc9353ea6a36d532766a20de86c64db2e102b402.tar.xz
Add a generic output_functions to make the upgrade path easier
-rw-r--r--paludis/repositories/e/ebuild/Makefile.am1
-rw-r--r--paludis/repositories/e/ebuild/output_functions.bash30
2 files changed, 31 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/Makefile.am b/paludis/repositories/e/ebuild/Makefile.am
index 3be3b19..cfea137 100644
--- a/paludis/repositories/e/ebuild/Makefile.am
+++ b/paludis/repositories/e/ebuild/Makefile.am
@@ -13,6 +13,7 @@ libexecprog_SCRIPTS = \
kernel_functions.bash \
install_functions.bash \
multilib_functions.bash \
+ output_functions.bash \
sandbox.bash \
source_functions.bash \
usage_error.bash \
diff --git a/paludis/repositories/e/ebuild/output_functions.bash b/paludis/repositories/e/ebuild/output_functions.bash
new file mode 100644
index 0000000..e22fde4
--- /dev/null
+++ b/paludis/repositories/e/ebuild/output_functions.bash
@@ -0,0 +1,30 @@
+#!/bin/bash
+# vim: set sw=4 sts=4 et :
+
+# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
+#
+# This file is part of the Paludis package manager. Paludis is free software;
+# you can redistribute it and/or modify it under the terms of the GNU General
+# Public License, version 2, as published by the Free Software Foundation.
+#
+# Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place, Suite 330, Boston, MA 02111-1307 USA
+
+ebuild_notice()
+{
+ [[ -z "${PALUDIS_PIPE_COMMANDS_SUPPORTED}" ]] && return
+ paludis_pipe_command LOG "$EAPI" "$@" >/dev/null
+}
+
+ebuild_section()
+{
+ echo -ne "${COLOUR_GREEN}>>>${COLOUR_NORMAL} "
+ echo "$@"
+}
+