diff options
author | P. J. McDermott <pjm@nac.net> | 2012-04-24 19:33:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-04-24 19:33:27 (EDT) |
commit | 63fa875896f8fc883580062180636c9f3b780330 (patch) | |
tree | 28e2a9729931298a284ce7d0444bdfb15da1bb1a /src/oh-applypatches.sh | |
parent | 4eba11e4d7a7bf9852a5b24cb7630d6d78da257b (diff) |
Make oh-* tools consistently use message library.
Diffstat (limited to 'src/oh-applypatches.sh')
-rw-r--r-- | src/oh-applypatches.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. +. @@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 |