summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Mueller <ulm@gentoo.org>2010-09-14 18:27:52 +0200
committerUlrich Mueller <ulm@gentoo.org>2010-09-14 18:28:33 +0200
commitf2375609adc80ebe5395d84902af4045ecea2f73 (patch)
tree5d12eec170a713ab8795c0ca5851e85db1fb82df
parent8532def19ab0426b14b6fdd80f026d9afb94499f (diff)
downloadportage-f2375609adc80ebe5395d84902af4045ecea2f73.tar.gz
portage-f2375609adc80ebe5395d84902af4045ecea2f73.tar.bz2
portage-f2375609adc80ebe5395d84902af4045ecea2f73.zip
Add option -s to docompress command.
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 7 insertions, 1 deletions
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%/}