From 63fa875896f8fc883580062180636c9f3b780330 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 24 Apr 2012 19:33:27 -0400 Subject: Make oh-* tools consistently use message library. --- (limited to 'src/oh-installfiles.sh') diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh index 41e9e27..e0da7c8 100644 --- a/src/oh-installfiles.sh +++ b/src/oh-installfiles.sh @@ -19,6 +19,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +. @@LIBDIR@@/opkhelper/messages + print_usage() { printf 'Usage: %s pkgname...\n' "$1" @@ -37,7 +39,7 @@ IFS=' # Iterate over packages. while [ ${#} -gt 0 ]; do - printf 'oh-installfiles: Installing files for package "%s"...\n' "${1}" + oh_info 'Installing files for package "%s"...' "${1}" mkdir ${1}.data || exit 1 chmod 755 ${1}.data || exit 1 @@ -60,8 +62,7 @@ done # TODO: This should be part of some kind of warnings/lint framework/script and # allow the user to drop to a debug shell before cleanup. if [ "$(find dest -type f | wc -l)" -gt 0 ]; then - printf 'oh-installfiles: Warning: %s\n' \ - 'Files remain in installation directory.' >&2 + oh_warn 'Files remain in installation directory' fi # Reset the IFS. -- cgit v0.9.1