This repository was archived by the owner on Jan 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ elif [[ $(uname -s) = "Linux" ]];then
13
13
fi
14
14
15
15
# # handle command line arguments
16
+ read -p " Do you want to sync? " choice
16
17
17
18
function help() {
18
19
cat << EOF
@@ -291,8 +292,10 @@ function build_variant() {
291
292
}
292
293
293
294
function jack_env() {
294
- RAM=$( free | awk ' /^Mem:/{ printf("%0.f", $2/(1024^2) - 1)}' ) # here's where the calc happens
295
- export JACK_SERVER_VM_ARGUMENTS=" -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx " $RAM " G"
295
+ RAM=$( free | awk ' /^Mem:/{ printf("%0.f", $2/(1024^2))}' ) # calculating how much RAM (wow, such ram)
296
+ if [[ " $RAM " -lt 16 ]]; then # if we're poor guys with less than 16gb
297
+ export JACK_SERVER_VM_ARGUMENTS=" -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx" $(( RAM - 1 )) " G"
298
+ fi
296
299
}
297
300
298
301
parse_options " $@ "
@@ -304,11 +307,13 @@ if [[ -z "$mainrepo" || ${#variant_codes[*]} -eq 0 ]]; then
304
307
exit 1
305
308
fi
306
309
310
+ if [[ $choice == * " y" * ]]; then
307
311
init_release
308
312
init_main_repo
309
313
init_local_manifest
310
314
init_patches
311
315
sync_repo
316
+ fi
312
317
patch_things
313
318
jack_env
314
319
You can’t perform that action at this time.
0 commit comments