xbps-src: clean target without args removes autodeps/{build,dest}dir now.
This commit is contained in:
parent
8d5284148e
commit
ecdb3900af
12
xbps-src
12
xbps-src
|
@ -26,8 +26,10 @@ build <pkgname>
|
|||
chroot
|
||||
Enter to the chroot in <masterdir>.
|
||||
|
||||
clean <pkgname>
|
||||
Remove <pkgname> build directory.
|
||||
clean [pkgname]
|
||||
Removes auto dependencies, cleans up <masterdir>/builddir and <masterdir>/destdir.
|
||||
If <pkgname> argument is specified only the builddir for that package will be
|
||||
cleaned up.
|
||||
|
||||
configure <pkgname>
|
||||
Configure a package (fetch + extract + configure).
|
||||
|
@ -558,6 +560,11 @@ case "$XBPS_TARGET" in
|
|||
chroot_handler chroot dummy
|
||||
;;
|
||||
clean)
|
||||
if [ -z "$XBPS_TARGET_PKG" ]; then
|
||||
chroot_handler remove-autodeps
|
||||
msg_normal "xbps-src: cleaning up masterdir...\n"
|
||||
rm -rf $XBPS_MASTERDIR/builddir/* $XBPS_MASTERDIR/destdir/*
|
||||
else
|
||||
read_pkg
|
||||
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
||||
chroot_handler $XBPS_TARGET $XBPS_TARGET_PKG || exit $?
|
||||
|
@ -567,6 +574,7 @@ case "$XBPS_TARGET" in
|
|||
run_func do_clean
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
remove-autodeps)
|
||||
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
||||
|
|
Loading…
Reference in New Issue