From 4fa6ed944c32b51852ac674c95c289245cd2dfc8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 13 Dec 2008 07:05:42 +0100 Subject: [PATCH] Added a new keyword to the build-pkg target: all. If this keyword is specified like this: $ xbps.sh build-pkg all All currently packages installed in masterdir will be created as binary packages in XBPS_PACKAGESDIR. --HG-- extra : convert_revision : 97a8cb7d6aa2a7462845a2e67e9c8a443051fc3b --- xbps.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/xbps.sh b/xbps.sh index 1d82a16db08..8f49cbc3bf1 100755 --- a/xbps.sh +++ b/xbps.sh @@ -41,8 +41,10 @@ $progname: [-C] [-c ] Targets: build Build a package (fetch + extract + configure + build). - build-pkg Build a binary package from . - Package must be installed into destdir before it. + build-pkg [|all] Build a binary package from . + Package must be installed into destdir. If the + keyword is used instead of , all packages + currently installed will be used. chroot Enter to the chroot in masterdir. configure Configure a package (fetch + extract + configure). extract Extract distribution file(s) into build directory. @@ -273,8 +275,17 @@ build|configure) build-pkg) . $XBPS_SHUTILSDIR/binpkg.sh . $XBPS_SHUTILSDIR/tmpl_funcs.sh - setup_tmpl $2 - xbps_make_binpkg + if [ "$2" = "all" ]; then + for f in $($XBPS_PKGDB_CMD list|awk '{print $1}'); do + setup_tmpl $f + [ "$build_style" = "meta-template" ] && continue + xbps_make_binpkg + reset_tmpl_vars + done + else + setup_tmpl $2 + xbps_make_binpkg + fi ;; chroot) . $XBPS_SHUTILSDIR/chroot.sh