diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-10-21 12:51:40 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-10-21 12:51:40 +0000 |
commit | eabbfd75e30148b8f686899a638b93547ca83485 (patch) | |
tree | 5b70e6802d6d9dfe8b4564fc4f09f2d0a5156343 /Mk | |
parent | f51fe6e12cc1833af15f8086b22a92af9f8aa4b0 (diff) | |
download | ports-eabbfd75e30148b8f686899a638b93547ca83485.tar.gz ports-eabbfd75e30148b8f686899a638b93547ca83485.zip |
${RM} already has -f.
PR: 213570
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=424411
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/elixir.mk | 4 | ||||
-rw-r--r-- | Mk/Uses/erlang.mk | 4 | ||||
-rw-r--r-- | Mk/Uses/gem.mk | 2 | ||||
-rw-r--r-- | Mk/Uses/gnome.mk | 4 | ||||
-rw-r--r-- | Mk/Uses/gssapi.mk | 2 | ||||
-rw-r--r-- | Mk/Uses/pear.mk | 8 | ||||
-rw-r--r-- | Mk/Uses/perl5.mk | 2 | ||||
-rw-r--r-- | Mk/Uses/php.mk | 4 | ||||
-rw-r--r-- | Mk/bsd.gecko.mk | 4 | ||||
-rw-r--r-- | Mk/bsd.licenses.mk | 12 | ||||
-rw-r--r-- | Mk/bsd.ocaml.mk | 2 | ||||
-rw-r--r-- | Mk/bsd.port.mk | 50 | ||||
-rw-r--r-- | Mk/bsd.port.subdir.mk | 4 |
13 files changed, 51 insertions, 51 deletions
diff --git a/Mk/Uses/elixir.mk b/Mk/Uses/elixir.mk index db19d929b165..0f89c49c2871 100644 --- a/Mk/Uses/elixir.mk +++ b/Mk/Uses/elixir.mk @@ -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) diff --git a/Mk/Uses/erlang.mk b/Mk/Uses/erlang.mk index 968730c0564b..0c001bd35aa9 100644 --- a/Mk/Uses/erlang.mk +++ b/Mk/Uses/erlang.mk @@ -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 diff --git a/Mk/Uses/gem.mk b/Mk/Uses/gem.mk index ee47a0eb9e5b..18eb230dae26 100644 --- a/Mk/Uses/gem.mk +++ b/Mk/Uses/gem.mk @@ -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) diff --git a/Mk/Uses/gnome.mk b/Mk/Uses/gnome.mk index 5e856f7722ca..d38e55af82c6 100644 --- a/Mk/Uses/gnome.mk +++ b/Mk/Uses/gnome.mk @@ -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; \ @@ -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 diff --git a/Mk/Uses/gssapi.mk b/Mk/Uses/gssapi.mk index 373dd1792d6f..f1e76ffc40b3 100644 --- a/Mk/Uses/gssapi.mk +++ b/Mk/Uses/gssapi.mk @@ -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}" diff --git a/Mk/Uses/pear.mk b/Mk/Uses/pear.mk index fc52f433e1b6..7874bb0ae195 100644 --- a/Mk/Uses/pear.mk +++ b/Mk/Uses/pear.mk @@ -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; \ @@ -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 diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index 8d3b0b7eadce..ff736c41768f 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -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 diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 6c2253648cd3..e06a102d98db 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -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 @@ -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} diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk index a11c546a3b5f..c751110dd62a 100644 --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -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} ; \ @@ -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} diff --git a/Mk/bsd.licenses.mk b/Mk/bsd.licenses.mk index da3f75173610..243272cb5e02 100644 --- a/Mk/bsd.licenses.mk +++ b/Mk/bsd.licenses.mk @@ -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}\""; \ @@ -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}\""; \ @@ -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 diff --git a/Mk/bsd.ocaml.mk b/Mk/bsd.ocaml.mk index 8d7cf2bd9fa8..c56e0db4ca09 100644 --- a/Mk/bsd.ocaml.mk +++ b/Mk/bsd.ocaml.mk @@ -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 diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index c5f7bf75c21b..5ae2a0b4e086 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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: @@ -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 @@ -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 \ @@ -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. @@ -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; } \ @@ -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 @@ -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 @@ -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 @@ -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; \ @@ -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 || :; \ @@ -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)"; \ @@ -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 @@ -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 @@ -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 @@ -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 @@ -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; \ }; \ @@ -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}; \ @@ -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 @@ -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 diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index e673a8e9b523..2321b62bfd44 100644 --- a/Mk/bsd.port.subdir.mk +++ b/Mk/bsd.port.subdir.mk @@ -303,7 +303,7 @@ readmes: readme .if !target(readme) readme: - @${RM} -f README.html + @${RM} README.html @${MAKE} README.html .endif @@ -345,7 +345,7 @@ README.html: -e '/%%SUBDIR%%/r$@.tmp2' \ -e '/%%SUBDIR%%/d' \ > $@ - @${RM} -f $@.tmp $@.tmp2 $@.tmp3 $@.tmp4 + @${RM} $@.tmp $@.tmp2 $@.tmp3 $@.tmp4 # Pass in the cached invariant variables to child makes. .if !defined(NOPRECIOUSMAKEVARS) |