From ae9417a4af53cfb5ad8b29ca10456888d05eaed8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 4 May 2010 22:23:54 +0200 Subject: [PATCH] xbps-src: added 'bootstrap' target to build/install xbps-base-chroot in masterdir. --- xbps-src/xbps-src.sh.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index cd8543883e5..d746bd305e5 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -41,6 +41,7 @@ usage() $progname: [-Ch] [-c ] [-m ] [-p ] Targets: + bootstrap Build and install the bootstrap packages into masterdir. build Build a package (fetch + extract + configure + build). build-pkg [all] Build a binary package from . Package must be installed into destdir. If the @@ -195,6 +196,14 @@ fi # Main switch case "$target" in +bootstrap) + . $XBPS_SHUTILSDIR/tmpl_funcs.sh + . $XBPS_SHUTILSDIR/pkgtarget_funcs.sh + [ ! -d $XBPS_SRCPKGDIR/xbps-base-chroot ] && \ + msg_error "Cannot find $XBPS_SRCPKGDIR/xbps-base-chroot directory!" + cd $XBPS_SRCPKGDIR/xbps-base-chroot && setup_tmpl $(basename_cwd) + install_pkg $pkgname + ;; build|configure) . $XBPS_SHUTILSDIR/tmpl_funcs.sh [ ! -r ./template ] && msg_error "missing build template file."