Updated buildRT script
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Written by DrSlony
|
# Written by DrSlony
|
||||||
# Version 2.4, 2012-06-28
|
# Version 2.5, 2012-11-13
|
||||||
# Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list
|
# Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list
|
||||||
# www.rawtherapee.com
|
# www.rawtherapee.com
|
||||||
# www.londonlight.org
|
# www.londonlight.org
|
||||||
@@ -74,8 +74,8 @@ compile () {
|
|||||||
cd "$repo" || exit 1
|
cd "$repo" || exit 1
|
||||||
echo
|
echo
|
||||||
printf "%s\n" "Cleaning out old CMake files"
|
printf "%s\n" "Cleaning out old CMake files"
|
||||||
make clean
|
make clean || { printf "%s\n" "Error while running \"make clean\", aborting." "Easiest solution: delete ${repo} and re-run buildRT."; exit 1; }
|
||||||
./clean.sh
|
./clean.sh || { printf "%s\n" "Error while running \"./clean.sh\", aborting." "Easiest solution: delete ${repo} and re-run buildRT."; exit 1; }
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# print current line in script:
|
# print current line in script:
|
||||||
@@ -85,7 +85,7 @@ compile () {
|
|||||||
if [[ ! $patched = b ]]; then
|
if [[ ! $patched = b ]]; then
|
||||||
printf "%s\n" "Updating the local repository."
|
printf "%s\n" "Updating the local repository."
|
||||||
hg pull
|
hg pull
|
||||||
hg update ${branch}
|
hg update -C ${branch}
|
||||||
else
|
else
|
||||||
printf "%s\n" "You ran this script with the \"b\" option (\"build-only\")." "Skipping repository update and binary zip creation."
|
printf "%s\n" "You ran this script with the \"b\" option (\"build-only\")." "Skipping repository update and binary zip creation."
|
||||||
fi
|
fi
|
||||||
@@ -233,7 +233,7 @@ setVars () {
|
|||||||
checkBits
|
checkBits
|
||||||
repo="${HOME}/rawtherapee" && echo "Repository is set to ${repo}"
|
repo="${HOME}/rawtherapee" && echo "Repository is set to ${repo}"
|
||||||
cpuCount="`grep -c 'processor' /proc/cpuinfo`"
|
cpuCount="`grep -c 'processor' /proc/cpuinfo`"
|
||||||
if (( "$cpuCount" >= 1 && "$cpuCount" <= 8 )); then echo "CPU count detected as ${cpuCount}"; else cpuCount="1"; echo "CPU count set to ${cpuCount}"; fi
|
if (( "$cpuCount" >= 1 && "$cpuCount" <= 16 )); then echo "CPU count detected as ${cpuCount}"; else cpuCount="1"; echo "CPU count set to ${cpuCount}"; fi
|
||||||
procTarget="2" && echo "procTarget set to ${procTarget}"
|
procTarget="2" && echo "procTarget set to ${procTarget}"
|
||||||
|
|
||||||
if hash notify-send 2>/dev/null; then alert_type="notify-send"
|
if hash notify-send 2>/dev/null; then alert_type="notify-send"
|
||||||
|
Reference in New Issue
Block a user