From: Ulrich Mueller Date: Tue, 14 Sep 2010 16:27:52 +0000 (+0200) Subject: Add option -s to docompress command. X-Git-Tag: v2.2_rc82~5 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f2375609adc80ebe5395d84902af4045ecea2f73;p=portage.git Add option -s to docompress command. --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 325d3c209..1c7a3c915 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -894,7 +894,13 @@ docompress() { hasq "${EAPI}" 0 1 2 3 && die "'docompress' not supported in this EAPI" local f g - if [[ $1 = "-x" ]]; then + if [[ $1 = "-s" ]]; then + if [[ $# -ne 1 ]]; then + helpers_die "${FUNCNAME[0]}: -s takes no additional arguments" + return 1 + fi + ecompress --suffix + elif [[ $1 = "-x" ]]; then shift for f; do f=$(strip_duplicate_slashes "${f}"); f=${f%/}