projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8532def
)
Add option -s to docompress command.
author
Ulrich Mueller
<ulm@gentoo.org>
Tue, 14 Sep 2010 16:27:52 +0000
(18:27 +0200)
committer
Ulrich Mueller
<ulm@gentoo.org>
Tue, 14 Sep 2010 16:28:33 +0000
(18:28 +0200)
bin/ebuild.sh
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index 325d3c2090137cc537e9da1b998a57a9659de563..1c7a3c915418b99077f7ca4148c26be126a768d9 100755
(executable)
--- 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%/}