diff options
author | Erich Eckner <git@eckner.net> | 2016-04-29 14:51:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-29 14:51:37 +0200 |
commit | b1582c56a530042d62ad410867e032ddf3401d64 (patch) | |
tree | ac4cda0fd5e3685087815585eaacfe96ef5c097e /neuesPerlPaket | |
parent | 94a75507256f8c6ba568711677e545593b1fc2f5 (diff) | |
download | archlinuxewe-b1582c56a530042d62ad410867e032ddf3401d64.tar.xz |
neuesPerlPaket kann jetzt gängige Substitutionen
Diffstat (limited to 'neuesPerlPaket')
-rwxr-xr-x | neuesPerlPaket | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket index 823ae88cb..7652953aa 100755 --- a/neuesPerlPaket +++ b/neuesPerlPaket @@ -6,6 +6,17 @@ then exit 1 fi +declare -A substitutionen + +substitutionen["perl"]="%skip" +substitutionen["strict"]="%skip" +substitutionen["warnings"]="%skip" +substitutionen["test-more"]="test-simple" +substitutionen["http-headers"]="http-message" +substitutionen["http-request-common"]="http-message" +substitutionen["io-file"]="io" +substitutionen["file-spec-functions"]="pathtools" + cpanName="$(echo "$1" | sed 's|::|-|g')" url="https://metacpan.org/release/${cpanName}" pkgname="perl-${cpanName,,}" @@ -79,8 +90,11 @@ do sed "s|::|-|g" | \ tr "[[:upper:]]" "[[:lower:]]" )" - [ "${key}" == "perl" ] && continue - [ "${key}" == "test-more" ] && continue + [ -n "${substitutionen["${key}"]}" ] && \ + key="${substitutionen["${key}"]}" + + [ "${key}" == "%skip" ] && continue + key="perl-${key}" value="$( echo "${s}" | \ |