makepkg: remove code duplication in buildscript parsing
commitfe1e3471f47d9da3bac4cedce250cd2ce04368b4
authorAndres P <aepd87@gmail.com>
Tue, 25 May 2010 21:02:07 +0000 (25 16:32 -0430)
committerDan McGee <dan@archlinux.org>
Thu, 27 May 2010 14:18:52 +0000 (27 09:18 -0500)
treed363b4409a987b79fe846d8d81852a2287a81f67
parent3064f8d08d8f8048aa064aa07c47b3059df7b56e
makepkg: remove code duplication in buildscript parsing

Merges code in two almost identical chunks in create_srcpackage and
check_sanity.

Also discards the space kept by regex in ae73d75660 and earlier, since
the for loop discards it later on.

Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in