From 356bd8f70ffe9e8b0bc5a48939663b4615dc8077 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Wed, 5 Oct 2011 01:11:52 +0200 Subject: [PATCH] - add a nice output for what to install this is a very useful feature IMO --- builder | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/builder b/builder index 726ac29..f1d81ba 100755 --- a/builder +++ b/builder @@ -1485,7 +1485,8 @@ build_package() { fi fi else - eval ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $SPECFILE + BRLISTFILE=$(tempfile) + eval ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $SPECFILE 2>$BRLISTFILE RETVAL=$? fi if [ "$RETVAL" -ne "0" ]; then @@ -1497,6 +1498,17 @@ build_package() { fi echo "" fi + # try to nicely show package list, to just copy&paste it to poldek or so... + cat $BRLISTFILE + BRLIST=$(awk 'BEGIN{ORS=" ";} NR>1 {print $1;}' $BRLISTFILE) + echo + echo "To install packages type:" + echo "poldek -ivh $BRLIST" + echo + echo "In poldek, copy these command:" + echo "install $BRLIST" + echo + rm $BRLISTFILE Exit_error err_build_fail fi unset BUILD_SWITCH -- 2.46.0