Jools Wills
1ca073199a
rename checkForInstalledAPTPackage to havePackage and switch the return codes. It was confusing and illogical.
...
fix the logic on checking for libsdl2 for emulationstation
2015-01-05 20:20:19 +00:00
Jools Wills
aaf66cf7c7
don't check for esconfigedit dependencies on every call, but check on script launch
...
git pull ESConfigEdit on first run if it doesn't exist, but don't git pull each time - instead we can upgrade it with the update function.
make sure folders exist when doing GitPullOrClone
2015-01-04 17:02:24 +00:00
Jools Wills
ca14394f37
fix up comment
2015-01-03 16:36:10 +00:00
Jools Wills
32419850b9
reworked ini/config setting to reduce copy/paste and make the calling simpler. Since the most common usage is to change a few configuration
...
values at once, we now have a iniConfig function that sets up the delimiter type (such as "=" or " = "), the value quote
character (often "" nothing or "\"" a single quote) and the filename. you can then just call "iniSet" or "iniUnset" with two parameters
for key and value. A third parameter can be used in case you wish to use the current ini settings but on a different file. We should now easily
be able to handle any key/value configs whilst keeping the code simple/compact
2015-01-03 13:38:57 +00:00
Jools Wills
6766fd73ae
fixed typo
2014-12-30 09:30:57 +00:00
Jools Wills
49d2fcb3d5
add a workaround for git hanging in a chroot environment (known qemu issue) by downloading a pregenerated tar.gz from github
...
when building in a chroot.
use local variables to make code more readable
2014-12-30 09:25:06 +00:00
Jools Wills
f88ee9b418
if no file exists - create a new one in iniSet
2014-12-24 20:28:46 +00:00
Jools Wills
af1020ff58
remove quoting from ini file key/value setting to mimic previous behaviour. Will rework these functions to provide clear naming for those that
...
quote and those that don't
2014-12-24 19:53:26 +00:00
Florian
d1b496bba5
Fix for a "sed: file not found" error
2014-12-22 12:53:13 +01:00
Jools Wills
a71ac7ac96
fix up incorrect bash replace on delimiter
2014-12-21 05:23:17 +00:00
Jools Wills
419b4b5c05
no need to make a temp file when adding a line - just work on the file directly (a backup is made before anyway).
...
this function could have failed if there was a temp folder in the same path for example
2014-12-20 21:55:03 +00:00
Jools Wills
5152da1f65
use requested delimiter in key/value search - after stripping any spaces.
2014-12-20 21:50:12 +00:00
Jools Wills
141a0e5f4e
oops. debug line left in
2014-12-20 21:31:27 +00:00
Jools Wills
10b4d14181
variable quoted => quote
2014-12-20 21:30:31 +00:00
Jools Wills
73d74678f5
rework key value functions - simplifying regular expression and making a single function
...
that handles all cases
2014-12-20 21:23:15 +00:00
Jools Wills
5f6ad2f900
when replacing ini file key/values - in the case of multiple keys (section based ini files), replace the last one only. Saves throwing a sed error. Ideally we would be able to handle ini files with sections properly
2014-12-20 19:37:40 +00:00
Jools Wills
98f51650dc
new helper function to make a directory owned by $user - saves mkdir followed by a chown
2014-12-20 19:36:19 +00:00
Jools Wills
51b65bd0d8
Merge branch 'master' into srcbin_reorga
...
Conflicts:
scriptmodules/emulators/gpsp.sh
scriptmodules/emulators/mupen64rpi.sh
scriptmodules/emulators/openmsx.sh
scriptmodules/helpers.sh
scriptmodules/libretrocores/mupen64libretro.sh
supplementary/scripts/input/basic.py
2014-12-19 22:43:45 +00:00
Jools Wills
df61ff0060
calculate toal memory just before adding additional swap just in case anything has changed since the script started (such as manually added swap, or in the case the script was interrupted and an old swap was still active)
2014-12-19 22:27:39 +00:00
Jools Wills
7eca5ed017
take a single parameter for ram in rpSwap - the total needed ram - rpSwap will calculate how much additional swap is needed
2014-12-19 22:21:27 +00:00
Jools Wills
11660ba459
files that should have been committed as part of 691dd7551e
2014-12-16 22:08:32 +00:00
Jools Wills
c6ef7567b8
reverted f7bf16972f
& aa908297d2
-
...
raspbian git doesn't have -C (too old)
2014-12-16 05:39:43 +00:00
Jools Wills
ea0f44a475
only add default -pipe gcc option if we have more than 256MB ram
2014-12-16 02:26:15 +00:00
Jools Wills
f7bf16972f
woops. forgot the directory parameter for git.
2014-12-15 19:34:57 +00:00
Jools Wills
aa908297d2
no need to pushd/popd for git pull. Just git -C. Remove output redirection for additional information
2014-12-15 19:34:12 +00:00
Jools Wills
227a06070c
renamed rps_checkNeededPackages to checkNeededPackages as it is used by modules and setup
2014-12-12 17:59:23 +00:00
Jools Wills
f1b6a2fcee
removed some unused functions from helpers.sh
2014-12-12 17:50:35 +00:00
Jools Wills
a68cac2d59
moved rps_availFreeDiskSpace to retropiesetup.sh
2014-12-12 17:45:28 +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
dee8e74caa
Merge branch 'memory' into separate_sources
2014-12-11 18:18:46 +00:00
Jools Wills
1a1529327d
don't try to remove folder for git pull/clone function
2014-12-11 14:58:22 +00:00
Jools Wills
f57a81d74f
we will add swap if memory is less than the limit, not less or equal
2014-12-11 02:44:30 +00:00
Jools Wills
df8f73155d
changed: use megabytes for both rpSwap memory parameters
2014-12-11 02:42:47 +00:00
Jools Wills
520b4eb9f0
added function to add/remove swap for building packages that need additional without messing with the users system dphys-swapfile config.
...
has a limit parameter so you can add swap if system ram is less than a chosen value
2014-12-11 02:06:10 +00:00
Jools Wills
762ce6e1a9
always create /etc/emulationstation in seESSystem if it doesn't exist - #424 #425
2014-08-08 00:53:43 +01:00
Florian
e47e2bd85e
Silenced gitPullOrClone
2014-08-07 07:16:02 +02:00
Florian
4c7621291c
Updated module dgen: dependencies, sources, installation
2014-08-06 18:30:43 +02:00
Florian
a639b19b79
Updated ESConfigEdit updating behavior
2014-08-06 07:20:14 +02:00
Florian
46077accfe
ES system settings are set individually for each system (issue #403 )
2014-08-02 10:44:41 +02: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
a91caebc91
use .sh for scriptmodule extension as shinc is no standard (so editors can't guess syntax highlight by default).
2014-07-20 19:37:33 +01:00