1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/scripts/libmakepkg
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
..
lint_package libmakepkg: fix test bracket style 2015-05-12 14:00:55 +10:00
lint_pkgbuild Refactor lint_source to work with earlier versions of Bash 2015-11-05 11:55:17 +10:00
source Remove space before ellipses 2015-10-19 13:48:56 +10:00
tidy libmakepkg: fix test bracket style 2015-05-12 14:00:55 +10:00
util libmakepkg: Add check_buildoption for distcc and ccache 2015-10-19 14:32:59 +10:00
.gitignore libmakepkg: update .gitignore 2015-09-22 15:11:52 +10:00
lint_package.sh.in libmakepkg: lint_package requires cd_safe 2015-07-20 11:43:27 +10:00
lint_pkgbuild.sh.in libmakepkg: extract PKGBUILD linting functions 2015-05-16 14:10:42 +10:00
source.sh.in libmakepkg: extract functions for source download and extraction 2015-05-19 23:43:00 +10:00
tidy.sh.in libmakepkg: fix test bracket style 2015-05-12 14:00:55 +10:00
util.sh.in libmakepkg: fix test bracket style 2015-05-12 14:00:55 +10:00