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/bsd.port.mk | |
parent | f51fe6e12cc1833af15f8086b22a92af9f8aa4b0 (diff) | |
download | ports-eabbfd75e30148b8f686899a638b93547ca83485.tar.gz ports-eabbfd75e30148b8f686899a638b93547ca83485.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 50 |
1 files changed, 25 insertions, 25 deletions
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 |