Splitting up makepkg seems a little 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.

-Kyle
http://kmkeen.com

Reply via email to