From f0ef1af5f7504934e3e4f886566dca3c43d938e7 Mon Sep 17 00:00:00 2001 From: Pierre-Alain TORET Date: Wed, 29 Nov 2017 10:16:42 +0100 Subject: [PATCH] Add dports-download-check target Signed-off-by: Pierre-Alain TORET Dragonfly-bug: --- etc/Makefile.usr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/Makefile.usr b/etc/Makefile.usr index ea74467a45..6fac00f768 100644 --- a/etc/Makefile.usr +++ b/etc/Makefile.usr @@ -104,6 +104,10 @@ dports-check: git-check @/bin/test ! -d ${.CURDIR}/dports/.git || \ (echo "Error: ${.CURDIR}/dports already exists"; /usr/bin/false) +dports-download-check: + @/bin/test ! -d ${.CURDIR}/dports || \ + (echo "Error: ${.CURDIR}/dports already exists"; /usr/bin/false) + dports-check-hasdir: git-check @/bin/test -d ${.CURDIR}/dports || \ (echo "Error: ${.CURDIR}/dports does not exist"; /usr/bin/false) @@ -132,7 +136,7 @@ dports-create-shallow: dports-check @echo ${WSTARS} .endif -dports-download: dports-check +dports-download: dports-download-check rm -f ${DPTBALL} fetch -o ${DPTBALL} ${DPDLURL} tar -xf ${DPTBALL} -C ${.CURDIR} -- 2.41.0