From eebc4743f928b22487303c0fa50ed8d94b906df2 Mon Sep 17 00:00:00 2001 From: DrSlony Date: Thu, 28 Jun 2012 22:34:15 +0100 Subject: [PATCH] Fixed buildRT to work with the -b buildonly flag when building some older versions --- tools/buildRT | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/buildRT b/tools/buildRT index fa2ef9e6a..c1f30f897 100755 --- a/tools/buildRT +++ b/tools/buildRT @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Written by DrSlony -# Version 2.3, 2012-06-26 +# Version 2.4, 2012-06-28 # Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list # www.rawtherapee.com # www.londonlight.org @@ -126,7 +126,12 @@ compile () { echo cd "${repo}/build" - # not sure if ${repo}/build/AboutThisBuild.txt is the same as ${repo}/build/rawtherapee/AboutThisBuild.txt + # ${repo}/build/AboutThisBuild.txt doesn't exist with older versions + # Put "AboutThisBuild.txt" alongside the "rawtherapee" dir for the zip so that the website can extract the needed info when uploading the build (no other reason) + if [[ ! -e AboutThisBuild.txt ]]; then + cp "rawtherapee/AboutThisBuild.txt" AboutThisBuild.txt || { printf "%s\n" "Could not copy ${repo}/build/rawtherapee/AboutThisBuild.txt to ${repo}/build/AboutThisBuild.txt, exiting."; exit 1; } + fi + cat AboutThisBuild.txt || { printf "%s\n" "${repo}/build/AboutThisBuild.txt not found, exiting."; exit 1; } if [[ ! $patched = b ]]; then