socsvn commit: r289125 - soc2015/roam
roam at FreeBSD.org
roam at FreeBSD.org
Sun Aug 2 22:51:48 UTC 2015
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
More information about the svn-soc-all
mailing list