Add option -s to docompress command.
authorUlrich Mueller <ulm@gentoo.org>
Tue, 14 Sep 2010 16:27:52 +0000 (18:27 +0200)
committerUlrich Mueller <ulm@gentoo.org>
Tue, 14 Sep 2010 16:28:33 +0000 (18:28 +0200)
bin/ebuild.sh

index 325d3c2090137cc537e9da1b998a57a9659de563..1c7a3c915418b99077f7ca4148c26be126a768d9 100755 (executable)
@@ -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%/}