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-applypatches.sh') diff --git a/src/oh-applypatches.sh b/src/oh-applypatches.sh index a688f32..ac51da9 100644 --- a/src/oh-applypatches.sh +++ b/src/oh-applypatches.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\n' "$1" @@ -34,7 +36,7 @@ applied=false if [ -d ../patches ]; then # Iterate over patches ordered alphabetically by name. for patch in $(ls -1 ../patches | sort); do - printf 'oh-applypatches: Applying patch "%s"...\n' "${patch}" + oh_info 'Applying patch "%s"...' "${patch}" patch -N -p 1 -u -d src -i "../../patches/${patch}" || exit 1 applied=true done @@ -42,5 +44,5 @@ fi # Provide output even if patches directory didn't exist or had no visible files. if ! ${applied}; then - printf 'oh-applypatches: No patches to be applied.\n' + oh_info 'No patches to be applied' fi -- cgit v0.9.1