diff options
author | flz <flz@FreeBSD.org> | 2008-04-09 15:08:31 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2008-04-09 15:08:31 +0000 |
commit | 7e6c3ca4e1840a590595c74b8eae7983dce531a5 (patch) | |
tree | e78a7b9df9d5f69c405233cab774602d158f7e4c /usr.sbin/pkg_install | |
parent | 98400ac9418a23137f2c38781b2cd81fb9d7224f (diff) | |
download | FreeBSD-src-7e6c3ca4e1840a590595c74b8eae7983dce531a5.zip FreeBSD-src-7e6c3ca4e1840a590595c74b8eae7983dce531a5.tar.gz |
Add a distfile target to generate a distfile to be used by the
ports-mgmt/pkg_install port.
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/Makefile b/usr.sbin/pkg_install/Makefile index ae8d098..8b5673e 100644 --- a/usr.sbin/pkg_install/Makefile +++ b/usr.sbin/pkg_install/Makefile @@ -5,3 +5,19 @@ SUBDIR= lib add create delete info updating version .include <bsd.subdir.mk> + +CP= /bin/cp +RM= /bin/rm +TAR= /usr/bin/tar + +DATE!= date +%Y%m%d + +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}) + + |