From d42160e298f920b093ff490a045b42fe1410c598 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Oct 2012 16:40:15 -0400 Subject: Print informational messages in oh-strip. --- diff --git a/locale/en_US/opkhelper.sh b/locale/en_US/opkhelper.sh index 8c3a71d..3f5e32a 100644 --- a/locale/en_US/opkhelper.sh +++ b/locale/en_US/opkhelper.sh @@ -19,3 +19,6 @@ msg_opkhelper_bad_opt='Invalid option' msg_opkhelper_installing_files='Installing files for package "%s"...' +msg_opkhelper_strip_so='Stripping shared library "%s"...' +msg_opkhelper_strip_exe='Stripping executable object "%s"...' +msg_opkhelper_strip_a='Stripping static library "%s"...' diff --git a/src/oh-strip.sh b/src/oh-strip.sh index a7ab1b0..5b8d785 100644 --- a/src/oh-strip.sh +++ b/src/oh-strip.sh @@ -82,6 +82,8 @@ strip_so() file="${1}" debug='' + ob_info "$(ob_get_msg 'strip_so')" "${file}" + if ${keep_debug}; then debug="$(keep_debug "${file}")" fi @@ -99,6 +101,8 @@ strip_exe() file="${1}" debug='' + ob_info "$(ob_get_msg 'strip_exe')" "${file}" + if ${keep_debug}; then debug="$(keep_debug "${file}")" fi @@ -115,6 +119,8 @@ strip_a() { file="${1}" + ob_info "$(ob_get_msg 'strip_a')" "${file}" + ${STRIP} --strip-debug "${dir}/${file}" } -- cgit v0.9.1