summaryrefslogtreecommitdiffstats
path: root/bin/dodoc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-11 18:50:51 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-11 18:50:51 +0000
commit71a41f72cc38e646ed2945f4c7b343a60247d968 (patch)
tree55ef76b63b008882005facc90084df255a80e4b5 /bin/dodoc
parent912ffed14090eb8659c9850dc52a88038e960293 (diff)
downloadportage-71a41f72cc38e646ed2945f4c7b343a60247d968.tar.gz
portage-71a41f72cc38e646ed2945f4c7b343a60247d968.tar.bz2
portage-71a41f72cc38e646ed2945f4c7b343a60247d968.zip
add support for user-customizable compression #9870
svn path=/main/trunk/; revision=5555
Diffstat (limited to 'bin/dodoc')
-rwxr-xr-xbin/dodoc7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/dodoc b/bin/dodoc
index 60b6a274f..4139cb593 100755
--- a/bin/dodoc
+++ b/bin/dodoc
@@ -1,9 +1,10 @@
#!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+# $Id$
if [ $# -lt 1 ] ; then
- echo "$0: at least one argument needed" 1>&2
+ vecho "${0##*/}: at least one argument needed" 1>&2
exit 1
fi
@@ -16,7 +17,7 @@ ret=0
for x in "$@" ; do
if [ -s "${x}" ] ; then
install -m0644 "${x}" "${dir}"
- gzip -f -9 "${dir}/${x##*/}"
+ ecompress "${dir}/${x##*/}"
elif [ ! -e "${x}" ] ; then
echo "dodoc: ${x} does not exist" 1>&2
((++ret))