1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/scripts
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
..
libmakepkg Refactor lint_source to work with earlier versions of Bash 2015-11-05 11:55:17 +10:00
library Consistently use 'directory' instead of 'folder' 2014-01-28 21:37:00 +10:00
po scripts/po: fix translated file name 2015-10-28 17:04:08 +10:00
.gitignore makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
Makefile.am libmakepkg: check if PKGBUILD variables are arrays or not as appropriate 2015-09-07 11:22:00 +10:00
makepkg-template.pl.in makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
makepkg-wrapper.sh.in Update copyright notices for 2015 2015-02-01 21:19:04 +10:00
makepkg.sh.in makepkg: fix $pkgname element duplication 2015-10-28 13:26:25 +10:00
pacman-db-upgrade.sh.in Update copyright notices for 2015 2015-02-01 21:19:04 +10:00
pacman-key.sh.in Remove space before ellipses 2015-10-19 13:48:56 +10:00
pacman-optimize.sh.in Update copyright notices for 2015 2015-02-01 21:19:04 +10:00
pkgdelta.sh.in pkgdelta: Use high compression options offered by xdelta3 2015-01-02 21:48:59 +10:00
repo-add.sh.in Remove space before ellipses 2015-10-19 13:48:56 +10:00