PKG_CLEANUP_DISTDIR(1)

NAME
PKG_CLEANUP_DISTDIR - cleanups DISTDIR directory

SYNOPSIS
pkg_cleanup_distdir [OPTIONS] [files ...]

DESCRIPTION
pkg_cleanup_distdir analyses ALLSRCFILES field of pkg_src_summary given on input and outputs list of files found in DISTDIR that are not referenced by any package. With option -r it removes all those files and empty subdirectories.

OPTIONS

-d DIR
    Directory to clean up. It overrides environment variable DISTDIR.

-h  Display help message.

-r  Remove unreferenced files and empty subdirectories.

ENVIRONMENT

DISTDIR
    Directory that contains distfiles. The default is /usr/pkgsrc/distfiles.

TMPDIR
    Directory for temporary files, by default /tmp is used.

EXAMPLES
# export DISTDIR=/usr/pkgsrc/distfiles # pkg_cleanup_distdir -r /usr/pkgsrc/pkg_src_summary.txt

SEE ALSO
pkg_summary-utils(7), pkg_summary(5)

AUTHOR
Aleksey Cheusov <vle@gmx.net>