diff options
author | 2015-09-06 04:46:07 +0200 | |
---|---|---|
committer | 2015-09-06 04:46:07 +0200 | |
commit | c60df97f113a9a39827b2823e3a31b0caae75ef1 (patch) | |
tree | 2ad060ca594a5dc6c81af86907c4a490c93002e9 | |
parent | Make executable (diff) | |
download | java-apicheck-c60df97f113a9a39827b2823e3a31b0caae75ef1.tar.gz java-apicheck-c60df97f113a9a39827b2823e3a31b0caae75ef1.tar.bz2 java-apicheck-c60df97f113a9a39827b2823e3a31b0caae75ef1.zip |
Resolve unsupported <depends> parameter
-rwxr-xr-x | apicheck | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -6,11 +6,7 @@ usage() { prog=$(basename "${0}") echo "Usage:" - echo "${prog} <ebuild|jar> <ebuild|jar|pkg> <depends>" - echo "depends: in the format given to java-config" - echo "" - echo "For generation 2 ebuilds the depends are taken" - echo "automatically from package.env." + echo "${prog} <ebuild|jar> <ebuild|jar|pkg>" echo "" echo "For example:" echo "apicheck foobar-1.0.ebuild foobar-1.1.ebuild" @@ -27,15 +23,13 @@ debug() { fi } -if [[ $# -lt 2 ]]; then +if [[ $# -ne 2 ]]; then usage fi oldarg="${1}" newarg="${2}" -depends="${3}" - if [[ -d /usr/share/${newarg} ]]; then pkg=true fi |