xbps-src: added 'bootstrap' target to build/install xbps-base-chroot in masterdir.
This commit is contained in:
parent
8e7398e4f5
commit
ae9417a4af
1 changed files with 9 additions and 0 deletions
|
@ -41,6 +41,7 @@ usage()
|
|||
$progname: [-Ch] [-c <config_file>] [-m <masterdir>] [-p <pkgdir>] <target>
|
||||
|
||||
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 <pkg>.
|
||||
Package must be installed into destdir. If the <all>
|
||||
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue