diff options
author | Erich Eckner <git@eckner.net> | 2022-06-17 21:42:22 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-06-17 21:42:27 +0200 |
commit | 9f195aea7e6312b53be44fac38ebab18a4bd8ee9 (patch) | |
tree | a117c08b1b570d7ecb52800532216686f562eb11 /bumpPerl | |
parent | cf1ec4e99f7d836f49f10c3743a5ac7da4b984ab (diff) | |
download | archlinuxewe-9f195aea7e6312b53be44fac38ebab18a4bd8ee9.tar.xz |
bumpPerl: use perl version from the database - so we don't need to install a recent perl first
Diffstat (limited to 'bumpPerl')
-rwxr-xr-x | bumpPerl | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -4,10 +4,14 @@ me="$(readlink -f $0)" cd $(dirname "${me}") perlMinor=$( - pacman -Q perl | \ - sed ' - s/^\S\+ // - ' + bsdtar -tf /var/lib/pacman/sync/core.db \ + | sed -n ' + s@^perl-@@ + T + s@-[0-9]\+/desc$@@ + T + /^[0-9.]\+$/p + ' ) perlMajor="${perlMinor%%.*}" perlMinor="${perlMinor#${perlMajor}.}" |