makepkg: move option parsing code to separate file
commit6f3a2145b0de7f27a1bf5932af3fe0a67171a881
authorAllan McRae <allan@archlinux.org>
Wed, 8 Jun 2011 13:36:46 +0000 (8 23:36 +1000)
committerDan McGee <dan@archlinux.org>
Wed, 15 Jun 2011 14:16:38 +0000 (15 09:16 -0500)
tree675413c6ba4b2ecdfc7aea7c6b0c053c6b52f843
parent5f404f2cb78f48ddd90be0334fa2528961b17871
makepkg: move option parsing code to separate file

This move the getopt replacement function parse_options out of
makepkg.sh.in and into a separate file.  The code is inserted
into the relevant place in makepkg using m4.

This will allow the reuse of the option parsing code in other
scripts (i.e. pacman-key) while avoiding code duplication.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/Makefile.am
scripts/library/parse_options.sh [new file with mode: 0644]
scripts/makepkg.sh.in