diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-11 18:50:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-11 18:50:51 +0000 |
commit | 71a41f72cc38e646ed2945f4c7b343a60247d968 (patch) | |
tree | 55ef76b63b008882005facc90084df255a80e4b5 /bin/dodoc | |
parent | 912ffed14090eb8659c9850dc52a88038e960293 (diff) | |
download | portage-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-x | bin/dodoc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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)) |