4 Sep
2013
4 Sep
'13
12:23 a.m.
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. A