From: Bartosz Świątek Date: Tue, 4 Oct 2011 23:11:52 +0000 (+0200) Subject: - add a nice output for what to install X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=356bd8f70ffe9e8b0bc5a48939663b4615dc8077;p=packages%2Frpm-build-tools.git - add a nice output for what to install this is a very useful feature IMO --- 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