pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk mk/bsd.pkg.update.mk: fix indentation
details: https://anonhg.NetBSD.org/pkgsrc/rev/94c418b0e065
branches: trunk
changeset: 347481:94c418b0e065
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Jan 11 19:30:50 2020 +0000
description:
mk/bsd.pkg.update.mk: fix indentation
diffstat:
mk/bsd.pkg.update.mk | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (75 lines):
diff -r a460be055567 -r 94c418b0e065 mk/bsd.pkg.update.mk
--- a/mk/bsd.pkg.update.mk Sat Jan 11 17:32:02 2020 +0000
+++ b/mk/bsd.pkg.update.mk Sat Jan 11 19:30:50 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.update.mk,v 1.26 2014/02/14 07:14:23 obache Exp $
+# $NetBSD: bsd.pkg.update.mk,v 1.27 2020/01/11 19:30:50 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and contains the targets
# and variables for "make update".
@@ -37,29 +37,29 @@
.PHONY: update
.if !target(update)
-.if exists(${_DDIR})
+. if exists(${_DDIR})
RESUMEUPDATE?= YES
CLEAR_DIRLIST?= NO
update:
@${PHASE_MSG} "Resuming update for ${PKGNAME}"
-. if ${REINSTALL} != "NO" && ${UPDATE_TARGET} != "replace"
+. if ${REINSTALL} != "NO" && ${UPDATE_TARGET} != "replace"
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} deinstall _UPDATE_RUNNING=YES DEINSTALLDEPENDS=ALL
-. endif
-.else
+. endif
+. else
RESUMEUPDATE?= NO
CLEAR_DIRLIST?= YES
update:
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} check-vulnerable
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} update-create-ddir
-. if ${UPDATE_TARGET} != "replace"
+. if ${UPDATE_TARGET} != "replace"
${RUN} if ${PKG_INFO} -qe ${PKGBASE}; then \
${RECURSIVE_MAKE} ${MAKEFLAGS} deinstall _UPDATE_RUNNING=YES DEINSTALLDEPENDS=ALL \
|| (${RM} ${_DDIR} && ${FALSE}); \
fi
+. endif
. endif
-.endif
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} ${UPDATE_TARGET} KEEP_WRKDIR=YES DEPENDS_TARGET=${DEPENDS_TARGET:Q}
${RUN} \
[ ! -s ${_DDIR} ] || for dep in `${CAT} ${_DDIR}` ; do \
@@ -77,9 +77,9 @@
${PHASE_MSG} "Skipping removed directory $${dep}"; \
fi) ; \
done
-.if ${NOCLEAN} == "NO"
+. if ${NOCLEAN} == "NO"
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean-update CLEAR_DIRLIST=YES
-.endif
+. endif
.PHONY: clean-update
@@ -95,14 +95,14 @@
fi) ; \
done ; \
fi
-.if ${CLEAR_DIRLIST} != "NO"
+. if ${CLEAR_DIRLIST} != "NO"
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean
-.else
+. else
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} clean update-dirlist DIRLIST="`${CAT} ${_DDIR}`" PKGLIST="`${CAT} ${_DLIST}`"
@${WARNING_MSG} "preserved leftover directory list. Your next"
@${WARNING_MSG} "\`\`${MAKE} update'' may fail. It is advised to use"
@${WARNING_MSG} "\`\`${MAKE} update REINSTALL=YES'' instead!"
-.endif
+. endif
.endif # !target(update)
Home |
Main Index |
Thread Index |
Old Index