summaryrefslogtreecommitdiffstats
path: root/src/oh-installfiles.sh
diff options
context:
space:
mode:
authorP. 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)
commit63fa875896f8fc883580062180636c9f3b780330 (patch)
tree28e2a9729931298a284ce7d0444bdfb15da1bb1a /src/oh-installfiles.sh
parent4eba11e4d7a7bf9852a5b24cb7630d6d78da257b (diff)
Make oh-* tools consistently use message library.
Diffstat (limited to 'src/oh-installfiles.sh')
-rw-r--r--src/oh-installfiles.sh7
1 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
+. @@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.