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
This commit is contained in:
parent
e817d470ab
commit
4fa6ed944c
1 changed files with 15 additions and 4 deletions
15
xbps.sh
15
xbps.sh
|
@ -41,8 +41,10 @@ $progname: [-C] [-c <config_file>] <target> <pkg>
|
||||||
|
|
||||||
Targets:
|
Targets:
|
||||||
build <pkg> Build a package (fetch + extract + configure + build).
|
build <pkg> Build a package (fetch + extract + configure + build).
|
||||||
build-pkg <pkg> Build a binary package from <pkg>.
|
build-pkg [<pkg>|all] Build a binary package from <pkg>.
|
||||||
Package must be installed into destdir before it.
|
Package must be installed into destdir. If the <all>
|
||||||
|
keyword is used instead of <pkg>, all packages
|
||||||
|
currently installed will be used.
|
||||||
chroot Enter to the chroot in masterdir.
|
chroot Enter to the chroot in masterdir.
|
||||||
configure <pkg> Configure a package (fetch + extract + configure).
|
configure <pkg> Configure a package (fetch + extract + configure).
|
||||||
extract <pkg> Extract distribution file(s) into build directory.
|
extract <pkg> Extract distribution file(s) into build directory.
|
||||||
|
@ -273,8 +275,17 @@ build|configure)
|
||||||
build-pkg)
|
build-pkg)
|
||||||
. $XBPS_SHUTILSDIR/binpkg.sh
|
. $XBPS_SHUTILSDIR/binpkg.sh
|
||||||
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
|
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
|
||||||
|
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
|
setup_tmpl $2
|
||||||
xbps_make_binpkg
|
xbps_make_binpkg
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
chroot)
|
chroot)
|
||||||
. $XBPS_SHUTILSDIR/chroot.sh
|
. $XBPS_SHUTILSDIR/chroot.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue