freebsd-dev/usr.sbin/pkg_install/Makefile
Florent Thoumie 081a90254c Use PKG_INSTALL_VERSION for the distfile name instead of current date.
X-MFC after:	pkg_install sync on -STABLE branches
2008-05-28 14:51:01 +00:00

24 lines
512 B
Makefile

# $FreeBSD$
.include <bsd.own.mk>
SUBDIR= lib add create delete info updating version
.include <bsd.subdir.mk>
CP= /bin/cp
RM= /bin/rm
TAR= /usr/bin/tar
DATE!= grep PKG_INSTALL_VERSION ${.CURDIR}/lib/lib.h | sed 's|.*[ ]||'
distfile: clean
@(cd ${.CURDIR}/..; \
${CP} -r pkg_install pkg_install-${DATE}; \
${TAR} -czf pkg_install/pkg_install-${DATE}.tar.gz \
--exclude .#* --exclude *~ --exclude CVS \
--exclude pkg_install-*.tar.gz pkg_install-${DATE}; \
${RM} -rf pkg_install-${DATE})