xbps-src: added 'clean' target to remove pkg build directory.

This commit is contained in:
Juan RP
2010-05-20 04:05:35 +02:00
parent db16467721
commit c785787fdd
3 changed files with 21 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ Targets:
checkvers Checks installed package versions against srcpkgs
for new available versions.
chroot Enter to the chroot in <masterdir>.
clean Remove <pkg> build directory.
configure Configure a package (fetch + extract + configure).
extract Extract distribution file(s) into build directory.
Build directory is always available in
@@ -312,6 +313,12 @@ chroot)
. $XBPS_SHUTILSDIR/chroot.sh
xbps_chroot_handler chroot dummy
;;
clean)
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
[ ! -r ./template ] && msg_error "missing build template in $(pwd)."
setup_tmpl $(basename_cwd)
remove_tmpl_wrksrc $wrksrc
;;
extract|fetch|info)
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
[ ! -r ./template ] && msg_error "missing build template in $(pwd)."