summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 96d6ce7de..1a57dd898 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -70,11 +70,13 @@ EOF
esac
set -x
+ (
rpmbuild -ba \
--define "_sourcedir ${PWD}/${COMP}" \
--define "_prefix ${PREFIX:-/opt/trinity}" \
--define "version ${VERSION:-3.5.13}" \
${COMP}/${SPEC} || exit 1
+ ) 2>&1 | tee /tmp/log
set +x
done