[packages/rpm-build-tools] prefix time(1) to build commands
glen
glen at pld-linux.org
Sun Mar 2 20:15:35 CET 2014
commit 6dd8b9ccbd5b2d853002670aece844f34a460d1c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 2 21:14:52 2014 +0200
prefix time(1) to build commands
builder.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index 47336ad..dfb0867 100755
--- a/builder.sh
+++ b/builder.sh
@@ -1597,7 +1597,7 @@ build_package() {
local specdir=$(insert_gitlog $SPECFILE)
# FIXME: eval here is exactly why?
- PATH=$CLEAN_PATH eval teeboth "'$logfile'" ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $specdir/$SPECFILE
+ PATH=$CLEAN_PATH eval teeboth "'$logfile'" ${TIME_COMMAND} ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $specdir/$SPECFILE
retval=$?
rm -r $specdir
@@ -2461,6 +2461,9 @@ else
NICE_COMMAND="nice -n ${DEF_NICE_LEVEL}"
fi
+# see time(1) for output format that could be used
+TIME_COMMAND="time -p"
+
update_shell_title "$COMMAND"
case "$COMMAND" in
"show_bconds")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/5650171a479ea17c94af522e013cfa4f34216d0d
More information about the pld-cvs-commit
mailing list