Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2015 22:51:47 GMT
From:      roam@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r289125 - soc2015/roam
Message-ID:  <201508022251.t72Mplh3066402@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.subdir.mk>
 
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508022251.t72Mplh3066402>