README updates

-Stating the obvious (Homebrew is for Mac OS X only)
-Forgot to mention a (quite important) future addition.
Added safety OpenJailbreak directory variable

-Added OJHome variable just in case an OpenJailbreak script “cd’s”
more/less than enough
-Modified comments placement
More required kegs and more

-Added openssl as it’s needed by one of the libraries from OpenJailbreak
-renaming functions
-began development in arguments (input)
Comments, strings organization +

-added comments
-added strings
-began development on “check_args” function
Prepare packages functions

-prep_package function that grabs names (for variables) and checks if
they are already installed
-install_package function (pretty self-explanatory)
-corrected variable calls (herp derp)
Gave a better name to the script

autobuild_brew.sh —> autobrew.sh
Small update to README

Adds the new script’s name.
Made core functions

-instead of build_all_libs (and a previously planned build_lib), I
prepared some variables and made it so that only one function
(build_libs) would do the stuff
-check_args function implementation (WIP)
-NO arguments == build all libs; ONE OR MORE == interpreted by a
function to “understand” what to do
-more string variables (including a conclusion variable, for when the
script finishes (partially-)successfully

-better variable placement
check_args minor adjustment

Now checks an “help” for all arguments (still WIP)
New function, status vars + much more

-Added status + return variables
-Separated the package grabbing from “prep_package” to its own function
“grab_package”
-Added “check_for_connect” that checks for a connection; if none is
present, ignores package grabbing and uses local stuff (if present)
-Checks if an argument contains “help” and brings up the “usage” dialog
-Persistent keg version checking system: the script is now ready to
install newer versions of any library (but still lacks support to fetch
newer versions)
-Better function placement
-Adjusted strings
-Adjusted comments
Minor fix

Fixed a missing $
New function + better function handling

-Added initial implementation function “which_libs” that detects valid
libraries if available
-Function “check_args” now properly detects arguments
Proper "which_libs" implementation

-Proper “which_libs” implementation
What does this mean? —> script now accepts specific libraries to
install as arguments (still a WIP)
Even better "which_libs" implementation

A more flexible argument grabber (fixes cases like
“libimobiledevice-1-0”)
Implementation of "check_for_brew" function ++

-Added “check_for_brew” function
-Added strings that can help the user if Brew is not installed
-Added Brew checking related variables
-Implemented “check_for_brew” in “main”
-Initial implementation of Colors
-Removal of “unsufArgs” string as it was useless
-Added “-e” argument in many “echo” calls (needed for coloring)
-Used the :- variable substitution when installing libs
Better arguments handling ++

-Revamped “check_args”, now named “check_stuff”. Relieves me from
headaches I was going to have
-Better argument checking system: more relentless, checks better if an
argument is a valid installable lib (or a “help”)
-Checks for Homebrew. No Homebrew? It’ll tell you how to install it.
-Checking systems for connections and requirements now brought into
“check_stuff”
-Added “noInternet” condition for when installing Required kegs
-Added system of ignoring non-existent libraries
-Corrected “usage” string
-Indicated that Xcode+tools must be installed before installing Brew
Important (but small) details

-Called an “exit” after detecting too many arguments
-Added a condition where, when “libs” ended up being empty, the script
is terminated (in the assumption that the user wished to install
certain libraries not available but wants to avoid installing all of
them)
-Placed “which_libs” under “build_libs” for code organization
-Edited a comment
Quicker "check_for_connect"

-Changed flag “-t1” to “-c1” in “check_for_connect” for a quicker
connection checking system
Failure implementation

-Implemented failure detection (detects if the keg was installed in the
Cellar)
-Added own Github page
-Added “failedInstall” string
-Updated “conclusion” string
-Added condition that checks if installation in the Cellar was
successful
-Libs that failed to install are printed out to the console
Minor fix