pacman/scripts
Dave Reisner 8679cd68d8 scripts/library: introduce parseopts
This will replace our current options parser used in pacman-key,
makepkg, and ideally elsewhere. It follows heuristics closer to that of
GNU getopt long (and thus pacman itself), with the exception that it
does not allow for options with optional arguments. Due to the way this
parser will be used, this sort of functionality will not be needed.

Instead of relying on eval+set, options are normalized into an array,
OPTRET, which callers should expect to be populated after returning from
parseopts. This avoids problems with quotes and spaces in arguments,
assuming that the user quotes properly when passing into the
application.

A new test harness for parseopts is added in test/scripts.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-24 08:38:36 -05:00
..
library scripts/library: introduce parseopts 2012-04-24 08:38:36 -05:00
po scripts/library: introduce parseopts 2012-04-24 08:38:36 -05:00
.gitignore Move some .gitignore entries 2011-07-18 10:28:19 -05:00
Makefile.am scripts/library: introduce parseopts 2012-04-24 08:38:36 -05:00
makepkg.sh.in makepkg: save and restore shopts when sourcing /etc/profile 2012-04-08 21:52:42 -05:00
pacman-db-upgrade.sh.in Merge branch 'maint' 2012-01-30 22:00:26 -06:00
pacman-key.sh.in Merge branch 'maint' 2012-04-08 21:51:24 -05:00
pacman-optimize.sh.in pacman-optimize: standardize on openssl usage, only touch local/ 2012-03-08 17:26:23 -06:00
pkgdelta.sh.in Merge branch 'maint' 2012-04-07 11:23:55 -05:00
rankmirrors.sh.in rankmirrors: properly sort resulting times 2011-09-06 08:44:34 -05:00
repo-add.sh.in repo-remove: remove deltas file if it becomes empty 2012-04-07 11:30:56 -05:00