Skip to content

Commit

Permalink
${RM} already has -f.
Browse files Browse the repository at this point in the history
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
  • Loading branch information
mat813 committed Oct 21, 2016
1 parent 5b45061 commit 316cf63
Show file tree
Hide file tree
Showing 718 changed files with 986 additions and 986 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ index:

fetchindex: ${INDEXDIR}/${INDEXFILE}.bz2
@bunzip2 < ${INDEXDIR}/${INDEXFILE}.bz2 > ${INDEXDIR}/${INDEXFILE} && \
chmod a+r ${INDEXDIR}/${INDEXFILE} && ${RM} -f ${INDEXDIR}/${INDEXFILE}.bz2
chmod a+r ${INDEXDIR}/${INDEXFILE} && ${RM} ${INDEXDIR}/${INDEXFILE}.bz2

${INDEXDIR}/${INDEXFILE}.bz2: .PHONY
@${FETCHINDEX} ${INDEXDIR}/${INDEXFILE}.bz2 ${MASTER_SITE_INDEX}${INDEXFILE}.bz2
Expand Down
4 changes: 2 additions & 2 deletions Mk/Uses/elixir.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ do-build:
fi
.endfor
.endif
@${RM} -f ${WRKSRC}/mix.lock
@${RM} ${WRKSRC}/mix.lock
@cd ${WRKSRC} && ${MIX_COMPILE}
.for app in ${MIX_EXTRA_APPS}
@${RM} -f ${WRKSRC}/${app}/mix.lock
@${RM} ${WRKSRC}/${app}/mix.lock
@cd ${WRKSRC}/${app} && ${MIX_COMPILE}
.endfor
.endif # .if !target(do-build)
Expand Down
4 changes: 2 additions & 2 deletions Mk/Uses/erlang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ post-patch-erlang:
${REINPLACE_CMD} -i '' -e "s@\./rebar3@${REBAR3_CMD}@; s@\./rebar@${REBAR_CMD}@" \
${WRKSRC}/rebar.config; \
fi
@${RM} -f ${WRKSRC}/src/*.orig ${WRKSRC}/include/*.orig
@${RM} ${WRKSRC}/src/*.orig ${WRKSRC}/include/*.orig

.if !target(do-build)
do-build:
# This will cause calls to local rebar and rebar3 to fail; makes it easier to spot them
@${RM} -f ${WRKSRC}/rebar ${WRKSRC}/rebar3
@${RM} ${WRKSRC}/rebar ${WRKSRC}/rebar3
.for target in ${REBAR_TARGETS}
# Remove rebar.lock every time - it can be created again after each run of rebar3
@${RM} ${WRKSRC}/rebar.lock
Expand Down
2 changes: 1 addition & 1 deletion Mk/Uses/gem.mk
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ do-install:
${RM} -r ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/build_info/
${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f -name '*.so' -exec ${STRIP_CMD} {} +
${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f \( -name mkmf.log -or -name gem_make.out \) -delete
${RM} -rf ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext \
${RM} -r ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext \
${STAGEDIR}${PREFIX}/${CACHE_DIR} 2> /dev/null || ${TRUE}
${RMDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR} 2> /dev/null || ${TRUE}
.if defined(NOPORTDOCS)
Expand Down
4 changes: 2 additions & 2 deletions Mk/Uses/gnome.mk
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ gnome-post-omf:
.if defined(INSTALLS_ICONS)
_USES_install+= 690:gnome-post-icons
gnome-post-icons:
@${RM} -f ${TMPPLIST}.icons1
@${RM} ${TMPPLIST}.icons1
@for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \
${ECHO_CMD} "@rmtry $${i}/icon-theme.cache" \
>> ${TMPPLIST}.icons1; \
Expand All @@ -723,7 +723,7 @@ gnome-post-icons:
done
@if test -f ${TMPPLIST}.icons1; then \
${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \
${RM} -f ${TMPPLIST}.icons1; \
${RM} ${TMPPLIST}.icons1; \
${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \
fi
.endif
Expand Down
2 changes: 1 addition & 1 deletion Mk/Uses/gssapi.mk
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ debug-krb:
${GSSAPILIBS} ${GSSAPILDFLAGS} ${_DEBUG_KRB_RPATH} \
/tmp/${.TARGET}.c && \
ldd /tmp/${.TARGET}.x; \
rm -f /tmp/${.TARGET}.x
${RM} /tmp/${.TARGET}.x
@echo "PREFIX: ${PREFIX}"
@echo "GSSAPIBASEDIR: ${GSSAPIBASEDIR}"
@echo "GSSAPIINCDIR: ${GSSAPIINCDIR}"
Expand Down
8 changes: 4 additions & 4 deletions Mk/Uses/pear.mk
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ do-autogenerate-plist:
@${LN} -sf ${WRKDIR}/package.xml ${WRKSRC}/package.xml
@cd ${WRKSRC} && ${PEAR} install -n -f -P ${WRKDIR}/inst package.xml > /dev/null 2> /dev/null
.for R in .channels .depdb .depdblock .filemap .lock .registry
@${RM} -rf ${WRKDIR}/inst/${PREFIX}/${LPEARDIR}/${R}
@${RM} -rf ${WRKDIR}/inst/${R}
@${RM} -r ${WRKDIR}/inst/${PREFIX}/${LPEARDIR}/${R}
@${RM} -r ${WRKDIR}/inst/${R}
.endfor
@FILES=`cd ${WRKDIR}/inst && ${FIND} . -type f | ${CUT} -c 2- | \
${GREP} -v -E "^${PREFIX}/"` || exit 0; \
Expand All @@ -134,8 +134,8 @@ do-install:
@cd ${WRKSRC} && ${PEAR} install -n -f -P ${STAGEDIR} package.xml
# Clean up orphans re-generated by pear-install
.for R in .channels .depdb .depdblock .filemap .lock .registry
@${RM} -rf ${STAGEDIR}${PREFIX}/${LPEARDIR}/${R}
@${RM} -rf ${STAGEDIR}/${R}
@${RM} -r ${STAGEDIR}${PREFIX}/${LPEARDIR}/${R}
@${RM} -r ${STAGEDIR}/${R}
.endfor
.endif

Expand Down
2 changes: 1 addition & 1 deletion Mk/Uses/perl5.mk
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ fix-perl-things:
# by mistake in their plists. It is sometime compressed, so use a
# shell glob for the removal. Also, remove the directories that
# contain it to not leave orphans directories around.
@${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || :
@${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || :
@${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || :
# Starting at ExtUtils::MakeMaker 7.06 and Perl 5.25.1, the base README.pod is
# no longer manified into a README.3, as the README.pod is installed and can be
Expand Down
4 changes: 2 additions & 2 deletions Mk/Uses/php.mk
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/${header}/*.h \
${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
. endfor
@${RM} -f ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${RM} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \
> ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
Expand All @@ -264,7 +264,7 @@ add-plist-phpext:
>> ${TMPPLIST}
@${ECHO_CMD} "@unexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \
>> ${TMPPLIST}
@${ECHO_CMD} "@unexec rm %D/include/php/ext/php_config.h.orig" \
@${ECHO_CMD} "@unexec ${RM} %D/include/php/ext/php_config.h.orig" \
>> ${TMPPLIST}
@${ECHO_CMD} "${PHP_EXT_INI_FILE}" \
>> ${TMPPLIST}
Expand Down
4 changes: 2 additions & 2 deletions Mk/bsd.gecko.mk
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ gecko-post-patch:
.if exists(${PKGDEINSTALL_INC})
@${MOZCONFIG_SED} < ${PKGDEINSTALL_INC} > ${PKGDEINSTALL}
.endif
@${RM} -f ${MOZCONFIG}
@${RM} ${MOZCONFIG}
.if !defined(NOMOZCONFIG)
@if [ -e ${PORT_MOZCONFIG} ] ; then \
${MOZCONFIG_SED} < ${PORT_MOZCONFIG} >> ${MOZCONFIG} ; \
Expand Down Expand Up @@ -579,7 +579,7 @@ post-install-script: gecko-create-plist

gecko-create-plist:
# Create the plist
${RM} -f ${PLISTF}
${RM} ${PLISTF}
.for dir in ${MOZILLA_PLIST_DIRS}
@cd ${STAGEDIR}${PREFIX}/${dir} && ${FIND} -H -s * ! -type d | \
${SED} -e 's|^|${dir}/|' >> ${PLISTF}
Expand Down
12 changes: 6 additions & 6 deletions Mk/bsd.licenses.mk
Original file line number Diff line number Diff line change
Expand Up @@ -616,12 +616,12 @@ ${_LICENSE_COOKIE}:
"$$(${CAT} ${_LICENSE_FILE})" 21 76

. elif ${_LICENSE_COMB} == "dual"
@${RM} -f ${_LICENSE_ASK_DATA}
@${RM} ${_LICENSE_ASK_DATA}
. for lic in ${_LICENSE_TO_ASK}
@${ECHO_CMD} "${lic}:${_LICENSE_FILE_${lic}}" >> ${_LICENSE_ASK_DATA}
. endfor
@menu_cmd="${DIALOG} --hline \"This port requires you to accept at least one license\" --menu \"License for ${PKGNAME} (dual)\" 21 70 15"; \
trap '${RM} -f $$tmpfile' EXIT INT TERM; \
trap '${RM} $$tmpfile' EXIT INT TERM; \
tmpfile=$$(mktemp -t portlicenses); \
for lic in ${_LICENSE_TO_ASK}; do \
menu_cmd="$${menu_cmd} VIEW_$${lic} \"View the license $${lic}\" USE_$${lic} \"Accept the license $${lic}\""; \
Expand All @@ -642,12 +642,12 @@ ${_LICENSE_COOKIE}:
done

. elif ${_LICENSE_COMB} == "multi"
@${RM} -f ${_LICENSE_ASK_DATA}
@${RM} ${_LICENSE_ASK_DATA}
. for lic in ${_LICENSE_TO_ASK}
@${ECHO_CMD} "${lic}:${_LICENSE_FILE_${lic}}" >> ${_LICENSE_ASK_DATA}
. endfor
@menu_cmd="${DIALOG} --hline \"This port requires you to accept all mentioned licenses\" --menu \"License for ${PKGNAME} (multi)\" 21 70 15"; \
trap '${RM} -f $$tmpfile' EXIT INT TERM; \
trap '${RM} $$tmpfile' EXIT INT TERM; \
tmpfile=$$(mktemp -t portlicenses); \
for lic in ${_LICENSE_TO_ASK}; do \
menu_cmd="$${menu_cmd} VIEW_$${lic} \"View the license $${lic}\""; \
Expand Down Expand Up @@ -693,12 +693,12 @@ ${_LICENSE_COOKIE}:
@${ECHO_MSG}
@exit 1
. endif
@${RM} -f ${_LICENSE_ASK_DATA}
@${RM} ${_LICENSE_ASK_DATA}
.endif

# Create report and catalog
.if !defined(NO_LICENSES_INSTALL)
@${RM} -f ${_LICENSE_CATALOG_TMP} ${_LICENSE_REPORT_TMP}
@${RM} ${_LICENSE_CATALOG_TMP} ${_LICENSE_REPORT_TMP}
. if ${_LICENSE_COMB} == "single"
# Catalog
. for var in _LICENSE _LICENSE_NAME _LICENSE_PERMS _LICENSE_GROUPS _LICENSE_DISTFILES
Expand Down
2 changes: 1 addition & 1 deletion Mk/bsd.ocaml.mk
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ ocaml-ldconfig:
_USES_install+= 745:ocaml-wash
ocaml-wash:
# If ld.conf is empty
@${ECHO_CMD} "@postunexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} -f %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST}
@${ECHO_CMD} "@postunexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST}
. endif
.endif

Expand Down
50 changes: 25 additions & 25 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,7 @@ fetch-url-list: fetch-url-list-int
# Extract

clean-wrkdir:
@${RM} -rf ${WRKDIR}
@${RM} -r ${WRKDIR}

.if !target(do-extract)
do-extract:
Expand Down Expand Up @@ -3150,7 +3150,7 @@ run-autotools-fixup:
cmp -s $${f}.fbsd10bak $${f} || \
${ECHO_MSG} "===> FreeBSD 10 autotools fix applied to $${f}"; \
${TOUCH} ${TOUCH_FLAGS} -mr $${f}.fbsd10bak $${f} ; \
${RM} -f $${f}.fbsd10bak ; \
${RM} $${f}.fbsd10bak ; \
done
.endif
.endif
Expand Down Expand Up @@ -3349,7 +3349,7 @@ do-package: ${TMPPLIST}
fi; \
fi
@for cat in ${CATEGORIES}; do \
${RM} -f ${PACKAGES}/$$cat/${PKGNAMEPREFIX}${PORTNAME}*${PKG_SUFX} ; \
${RM} ${PACKAGES}/$$cat/${PKGNAMEPREFIX}${PORTNAME}*${PKG_SUFX} ; \
done
@${MKDIR} ${WRKDIR}/pkg
@if ${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CREATE} ${PKG_CREATE_ARGS} -f ${PKG_SUFX:S/.//} -o ${WRKDIR}/pkg ${PKGNAME}; then \
Expand Down Expand Up @@ -3380,12 +3380,12 @@ do-package: ${TMPPLIST}
delete-package:
@${ECHO_MSG} "===> Deleting package for ${PKGNAME}"
# When staging, the package may only be in the workdir if not root
@${RM} -f ${PKGFILE} ${WRKDIR_PKGFILE} 2>/dev/null || :
@${RM} ${PKGFILE} ${WRKDIR_PKGFILE} 2>/dev/null || :
.endif

.if !target(delete-package-list)
delete-package-list:
@${ECHO_CMD} "[ -f ${PKGFILE} ] && (${ECHO_CMD} deleting ${PKGFILE}; ${RM} -f ${PKGFILE})"
@${ECHO_CMD} "[ -f ${PKGFILE} ] && (${ECHO_CMD} deleting ${PKGFILE}; ${RM} ${PKGFILE})"
.endif

# Used by scripts and users to install a package from local repository.
Expand Down Expand Up @@ -3518,7 +3518,7 @@ security-check: ${TMPPLIST}
# 4. startup scripts, in conjunction with 2.
# 5. world-writable files/dirs
#
-@${RM} -f ${WRKDIR}/.PLIST.setuid ${WRKDIR}/.PLIST.writable ${WRKDIR}/.PLIST.objdump; \
-@${RM} ${WRKDIR}/.PLIST.setuid ${WRKDIR}/.PLIST.writable ${WRKDIR}/.PLIST.objdump; \
${AWK} -v prefix='${PREFIX}' ' \
match($$0, /^@cwd /) { prefix = substr($$0, RSTART + RLENGTH); if (prefix == "/") prefix=""; next; } \
/^@/ { next; } \
Expand Down Expand Up @@ -3621,13 +3621,13 @@ checkpatch:

.if !target(reinstall)
reinstall:
@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@${RM} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} -DFORCE_PKG_REGISTER install
.endif

.if !target(restage)
restage:
@${RM} -rf ${STAGEDIR} ${STAGE_COOKIE} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@${RM} -r ${STAGEDIR} ${STAGE_COOKIE} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@cd ${.CURDIR} && ${MAKE} stage
.endif

Expand All @@ -3651,7 +3651,7 @@ deinstall:
else \
${ECHO_MSG} "===> ${PKGBASE} not installed, skipping"; \
fi
@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@${RM} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
.endif
.endif

Expand Down Expand Up @@ -3680,7 +3680,7 @@ deinstall-all:
else \
${ECHO_MSG} "===> ${PKGORIGIN} not installed, skipping"; \
fi; \
${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
${RM} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
.endif
.endif

Expand All @@ -3690,7 +3690,7 @@ deinstall-all:
do-clean:
@if [ -d ${WRKDIR} ]; then \
if [ -w ${WRKDIR} ]; then \
${RM} -rf ${WRKDIR}; \
${RM} -r ${WRKDIR}; \
else \
${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \
fi; \
Expand Down Expand Up @@ -3728,7 +3728,7 @@ delete-distfiles:
@(if [ "X${RESTRICTED_FILES}" != "X" -a -d ${_DISTDIR} ]; then \
cd ${_DISTDIR}; \
for file in ${RESTRICTED_FILES}; do \
${RM} -f $${file}; \
${RM} $${file}; \
dir=$${file%/*}; \
if [ "$${dir}" != "$${file}" ]; then \
${RMDIR} -p $${dir} >/dev/null 2>&1 || :; \
Expand All @@ -3745,7 +3745,7 @@ delete-distfiles-list:
@${ECHO_CMD} "# ${PKGNAME}"
@if [ "X${RESTRICTED_FILES}" != "X" ]; then \
for file in ${RESTRICTED_FILES}; do \
${ECHO_CMD} "[ -f ${_DISTDIR}/$$file ] && (${ECHO_CMD} deleting ${_DISTDIR}/$$file; ${RM} -f ${_DISTDIR}/$$file)"; \
${ECHO_CMD} "[ -f ${_DISTDIR}/$$file ] && (${ECHO_CMD} deleting ${_DISTDIR}/$$file; ${RM} ${_DISTDIR}/$$file)"; \
dir=$${file%/*}; \
if [ "$${dir}" != "$${file}" ]; then \
${ECHO_CMD} "(cd ${_DISTDIR} && ${RMDIR} -p $${dir} 2>/dev/null)"; \
Expand Down Expand Up @@ -3848,7 +3848,7 @@ package-name:
repackage: pre-repackage package

pre-repackage:
@${RM} -f ${PACKAGE_COOKIE}
@${RM} ${PACKAGE_COOKIE}
.endif

# Build a package but don't check the cookie for installation, also don't
Expand Down Expand Up @@ -4282,7 +4282,7 @@ readmes: readme

.if !target(readme)
readme:
@${RM} -f ${.CURDIR}/README.html
@${RM} ${.CURDIR}/README.html
@cd ${.CURDIR} && ${MAKE} ${.CURDIR}/README.html
.endif

Expand Down Expand Up @@ -4508,13 +4508,13 @@ compress-man:
${GZIP_CMD} $${f} ; \
continue ; \
fi ; \
${RM} -f $${f} ; \
${RM} $${f} ; \
(cd $${f%/*}; ${LN} -f $${ref##*/} $${f##*/}.gz) ; \
done ; \
done ; \
${FIND} $$dir -type l \! -name "*.gz" | while read link ; do \
${LN} -sf $$(readlink $$link).gz $$link.gz ;\
${RM} -f $$link ; \
${RM} $$link ; \
done; \
done
.endif
Expand Down Expand Up @@ -4568,7 +4568,7 @@ fake-pkg: create-manifest
.else
@${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CMD} ${STAGE_ARGS} -m ${METADIR} -f ${TMPPLIST}
.endif
@${RM} -rf ${METADIR}
@${RM} -r ${METADIR}
.endif
.endif

Expand Down Expand Up @@ -4766,9 +4766,9 @@ do-config:
(${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1) ; \
fi
@TMPOPTIONSFILE=$$(mktemp -t portoptions); \
trap "${RM} -f $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \
trap "${RM} $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \
${SETENV} ${D4P_ENV} ${SH} ${SCRIPTSDIR}/dialog4ports.sh $${TMPOPTIONSFILE} || { \
${RM} -f $${TMPOPTIONSFILE}; \
${RM} $${TMPOPTIONSFILE}; \
${ECHO_MSG} "===> Options unchanged"; \
exit 0; \
}; \
Expand All @@ -4778,9 +4778,9 @@ do-config:
exit 0; \
fi; \
SELOPTIONS=$$(${CAT} $${TMPOPTIONSFILE}); \
${RM} -f $${TMPOPTIONSFILE}; \
${RM} $${TMPOPTIONSFILE}; \
TMPOPTIONSFILE=$$(mktemp -t portoptions); \
trap "${RM} -f $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \
trap "${RM} $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \
${ECHO_CMD} "# This file is auto-generated by 'make config'." > $${TMPOPTIONSFILE}; \
${ECHO_CMD} "# Options for ${PKGNAME}" >> $${TMPOPTIONSFILE}; \
${ECHO_CMD} "_OPTIONS_READ=${PKGNAME}" >> $${TMPOPTIONSFILE}; \
Expand All @@ -4800,7 +4800,7 @@ do-config:
else \
${CAT} $${TMPOPTIONSFILE} > ${OPTIONS_FILE}; \
fi; \
${RM} -f $${TMPOPTIONSFILE}
${RM} $${TMPOPTIONSFILE}
@cd ${.CURDIR} && ${MAKE} sanity-config
.endif
.endif # do-config
Expand Down Expand Up @@ -4885,11 +4885,11 @@ rmconfig:
optionsdir=${OPTIONS_FILE:H}; \
if [ ${UID} != 0 -a "x${INSTALL_AS_USER}" = "x" -a ! -w "${OPTIONS_FILE}" ]; then \
${ECHO_MSG} "===> Switching to root credentials to remove ${OPTIONS_FILE} and $${optionsdir}"; \
${SU_CMD} "${RM} -f ${OPTIONS_FILE} ; \
${SU_CMD} "${RM} ${OPTIONS_FILE} ; \
${RMDIR} $${optionsdir}"; \
${ECHO_MSG} "===> Returning to user credentials"; \
else \
${RM} -f ${OPTIONS_FILE}; \
${RM} ${OPTIONS_FILE}; \
${RMDIR} $${optionsdir} 2>/dev/null || return 0; \
fi
.else
Expand Down
Loading

0 comments on commit 316cf63

Please sign in to comment.