From owner-svn-soc-all@freebsd.org Sun Aug 2 22:51:48 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7082C9B1A2B for ; Sun, 2 Aug 2015 22:51:48 +0000 (UTC) (envelope-from roam@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62127129 for ; Sun, 2 Aug 2015 22:51:48 +0000 (UTC) (envelope-from roam@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id t72Mpmj1066407 for ; Sun, 2 Aug 2015 22:51:48 GMT (envelope-from roam@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id t72Mplh3066402 for svn-soc-all@FreeBSD.org; Sun, 2 Aug 2015 22:51:47 GMT (envelope-from roam@FreeBSD.org) Date: Sun, 2 Aug 2015 22:51:47 GMT Message-Id: <201508022251.t72Mplh3066402@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to roam@FreeBSD.org using -f From: roam@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289125 - soc2015/roam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2015 22:51:48 -0000 Author: roam Date: Sun Aug 2 22:51:47 2015 New Revision: 289125 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289125 Log: Add the 'dist' and 'distclean' top-level targets. ObQuote: "Wrap it up, I'll take it" Modified: soc2015/roam/Makefile Modified: soc2015/roam/Makefile ============================================================================== --- soc2015/roam/Makefile Sun Aug 2 22:51:44 2015 (r289124) +++ soc2015/roam/Makefile Sun Aug 2 22:51:47 2015 (r289125) @@ -26,6 +26,18 @@ .include +NAME= ng_ayiya +VERSION= 0.1.0.dev210 + +DISTNAME= ${NAME}-${VERSION} +DISTDIR= ${DISTNAME} +S= ${.CURDIR} +D= ${.CURDIR}/${DISTDIR} + +CP?= cp -pf +RM?= rm -rf +MKDIR?= mkdir -p + down: cd ${.CURDIR}/ng_ayiya && ${MAKE} down @@ -40,3 +52,17 @@ clitest-quiet: tic cd ${.CURDIR}/ayiya_resp && ${MAKE} clitest-quiet + +dist: + ${RM} $D/ + ${MKDIR} $D + cd $S && git ls-files | fgrep -ve / | while read f; do ${CP} $S/$$f $D/$$f; done + cd $S && git ls-files ${SUBDIR} | xargs -n1 dirname | sort -u | while read d; do ${MKDIR} $D/$$d; done + cd $S && git ls-files ${SUBDIR} | while read f; do ${CP} $S/$$f $D/$$f; done + cd $S && tar zcf ${DISTNAME}.tar.gz ${DISTDIR}/ + cd $S && tar jcf ${DISTNAME}.tar.bz2 ${DISTDIR}/ + cd $S && tar Jcf ${DISTNAME}.tar.xz ${DISTDIR}/ + +distclean: + ${RM} $D/ + cd $S && ${MAKE} cleandir && ${MAKE} cleandir