[pacman-dev] [PATCH 0/5] Splitting up makepkg into libmakepkg
allan at archlinux.org
Tue Sep 3 20:23:39 EDT 2013
On 04/09/13 06:15, keenerd wrote:
> Splitting up makepkg seems a little silly.
A >3000 line bash script that is virtually impossible to comprehensively
test is silly.
> This might qualify as "too
> simple", but please consider something like this this:
> [ $1 == "--as-lib" ] && return
> You place this between the function definitions and the main body of
> the script. When you do a
> source makepkg --as-lib
> then it will load all the functions and bail out before getting to the
> main code.
Having a library available is not the point of this. I'd guess very
little else is actually going to use it.
More information about the pacman-dev