Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2013 04:35:16 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333364 - head/textproc/multimarkdown
Message-ID:  <201311100435.rAA4ZGjX092946@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sun Nov 10 04:35:16 2013
New Revision: 333364
URL: http://svnweb.freebsd.org/changeset/ports/333364

Log:
  Avoid re-fetching if it was already completed.

Deleted:
  head/textproc/multimarkdown/distinfo
Modified:
  head/textproc/multimarkdown/Makefile

Modified: head/textproc/multimarkdown/Makefile
==============================================================================
--- head/textproc/multimarkdown/Makefile	Sun Nov 10 01:27:27 2013	(r333363)
+++ head/textproc/multimarkdown/Makefile	Sun Nov 10 04:35:16 2013	(r333364)
@@ -32,11 +32,13 @@ CONFLICTS_INSTALL=	mtools-*
 .endif
 
 do-fetch:
-	${MKDIR} ${WRKDIR}
-	cd ${WRKDIR} && git clone https://github.com/fletcher/MultiMarkdown-4.git
-	cd ${WRKSRC} && git checkout ${PORTVERSION}
-	cd ${WRKSRC} && git submodule init
-	cd ${WRKSRC} && git submodule update
+	@if [ ! -e ${WRKSRC}/greg/Makefile ]; then \
+		${MKDIR} ${WRKDIR}; \
+		cd ${WRKDIR} && git clone https://github.com/fletcher/MultiMarkdown-4.git; \
+		cd ${WRKSRC} && git checkout ${PORTVERSION}; \
+		cd ${WRKSRC} && git submodule init; \
+		cd ${WRKSRC} && git submodule update; \
+	fi
 
 do-extract:
 	@${DO_NADA}	#normally do-extract starts with an rm -rf ${WRKSRC}



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