[pacman-dev] [PATCH 0/5] Splitting up makepkg into libmakepkg
keenerd
keenerd at gmail.com
Tue Sep 3 16:15:39 EDT 2013
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
More information about the pacman-dev
mailing list