1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-12 12:25:02 -05:00
pacman/scripts/libmakepkg/lint_pkgbuild
Aaron Campbell bf0e8e6b43 Refactor lint_source to work with earlier versions of Bash
Negative subscripts to indexed arrays are not supported before 4.2.  However,
since substring expansion works on arrays, we can specify an offset of -1 to
be taken relative to one greater than the maximum index of the specified
array (see Parameter Expansion section of the bash man page).  This works with
both Bash 4.1 and 4.2, and 4.1 is already the oldest supported by pacman.

Signed-off-by: Aaron Campbell <aaron@monkey.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2015-11-05 11:55:17 +10:00
..
arch.sh.in libmakepkg: return 1 on error in arch array 2015-09-22 16:06:29 +10:00
backup.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
changelog.sh.in libmakepkg: remove declaration of unused local variables 2015-09-22 16:11:32 +10:00
epoch.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
install.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
optdepends.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
options.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
package_function.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
pkgbase.sh.in makepkg: put further restrictions on pkgbase 2015-05-16 14:10:42 +10:00
pkglist.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
pkgname.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
pkgrel.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
pkgver.sh.in libmakepkg: fix pkgver checking 2015-10-27 20:44:57 +10:00
provides.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
source.sh.in Refactor lint_source to work with earlier versions of Bash 2015-11-05 11:55:17 +10:00
util.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
variable.sh.in libmakepkg: check if PKGBUILD variables are arrays or not as appropriate 2015-09-07 11:22:00 +10:00