Jools Wills
54c2abb595
rename $builddir to $__builddir and move up to where other defaults are set
2014-12-13 03:19:03 +00:00
Jools Wills
3b582f2229
move some functions out of helpers that are not used by multiple scripts
2014-12-12 17:44:05 +00:00
Jools Wills
be9abdfc28
oops. type wasn't being set correctly
2014-12-12 03:22:23 +00:00
Jools Wills
d6eeb80d0a
improved variable naming
...
exit calling all functions on an error
2014-12-12 03:17:00 +00:00
Jools Wills
8531edf9dd
rename variables returned by modules. these would be better dealt with in a function - would be more flexible
2014-12-12 02:51:33 +00:00
Jools Wills
40abc2da8f
use descriptive variables for use in modules rather than $1 / $2 etc. They have local scope in the parent function so are visible.
...
the build/install paths are pregenerated making modules even simpler - we use the module type to decide where to put it, which
will be needed for supplementary / libretrocores
2014-12-12 02:34:51 +00:00
Jools Wills
df5639b111
only check for source files when installing/copying
2014-12-11 18:41:24 +00:00
Jools Wills
a9aa742c01
allow modules to return a list of files/directories for copying/installing
2014-12-11 17:34:48 +00:00
Jools Wills
22735ae651
create builddir for install function also for the case of files installed from binaries
2014-12-11 15:24:32 +00:00
Jools Wills
407d27fc58
create the install destination directory before running install
2014-12-11 14:56:28 +00:00
Jools Wills
125d515b48
move error testing for "required" files to packages.sh - makes it easier for modules to report if something has worked or not
2014-12-11 14:44:49 +00:00
Jools Wills
fb655178b9
remove source folders if they exist - we always do a clean checkout now
2014-12-11 03:44:13 +00:00
Jools Wills
421d1d5b4a
handle pushd/popd in packages.sh to minimise duplication in modules
2014-12-11 03:28:35 +00:00
Jools Wills
e69eb7ea1b
pass module id and description to module functions to allow them to be used to avoid string/path duplication etc
2014-10-27 00:53:47 +00:00
Jools Wills
f7c5db59d8
add support for a "remove" function - will use to allow a remove in the bashwelcometweak.sh for example
...
correct 1 line comment regarding parameters to rp_registerFunction
2014-10-26 20:00:31 +00:00
Jools Wills
6076946ec3
for better readability/naming use depends rather than depen for dependency function naming (and retropie_package parameters)
2014-08-11 17:53:24 +01:00
Jools Wills
e89dcedc8d
improved usage info wording
2014-07-21 00:42:16 +01:00
Jools Wills
f1ff9ced80
renamed rp_callFunction to rp_callModule
2014-07-20 22:40:47 +01:00
Jools Wills
061f30ad5a
add facility for rp_callFunction with only an index/module_id to call all script modes (depen / sources / build / configure etc)
...
use rp_callFunction directly for the binaries based installation which should be more efficient than continually sourcing the retropie_packages.sh script
2014-07-20 22:37:56 +01:00
Jools Wills
269ff472a8
renamed the global associative arrays
2014-07-20 22:29:36 +01:00
Jools Wills
5d59e082f8
don't keep multiple associative arrays with module functions. We can determine them as needed.
...
change output of retropie_packages to show index and module id. since we are not hardcoding the index, it's possible they can change
so it will be a good idea to be able to use the module id
2014-07-20 21:45:20 +01:00
Jools Wills
de6cec861f
split supplementary.sh into auto-loading modules
2014-07-20 20:35:26 +01:00
Jools Wills
c272a3a4ef
split out emulators and libretro cores into separate module files - supplementary modules still to do
...
add functions for registering/loading the modules
2014-07-20 19:41:17 +01:00
Jools Wills
842c185abf
split out package functions to packages.sh
2014-07-20 19:39:20 +01:00