--ignore)
shift
for skip in "$@" ; do
- [[ -d ${D}${skip} || -f ${D}${skip} ]] \
+ [[ -d ${ED}${skip} || -f ${ED}${skip} ]] \
- && touch "${D}${skip}.ecompress.skip"
+ && >> "${D}${skip}.ecompress.skip"
done
exit 0
;;
--queue)
shift
set -- "${@/%/.ecompress.dir}"
- set -- "${@/#/${D}}"
+ set -- "${@/#/${ED}}"
- touch "$@"
- ret=$?
+ ret=0
+ for x in "$@" ; do
+ >> "$x"
+ ((ret|=$?))
+ done
[[ $ret -ne 0 ]] && helpers_die "${0##*/} failed"
exit $ret
;;
local x
if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
shift
- find "$@" -type d -printf "${D}%p/.keep_${CATEGORY}_${PN}-${SLOT}\n" \
+ find "$@" -type d -printf "${ED}%p/.keep_${CATEGORY}_${PN}-${SLOT}\n" \
- | tr "\n" "\0" | ${XARGS} -0 -n100 touch || \
- die "Failed to recursively create .keep files"
+ | tr "\n" "\0" | \
+ while read -r -d $'\0' ; do
+ >> "$REPLY" || \
+ die "Failed to recursively create .keep files"
+ done
else
for x in "$@"; do
- touch "${ED}${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || \
- die "Failed to create .keep in ${ED}${x}"
- >> "${D}${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || \
++ >> "${ED}${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || \
+ die "Failed to create .keep in ${D}${x}"
done
fi
}
export _E_DOCDESTTREE_=""
ebuild_phase src_install
- touch "${PORTAGE_BUILDDIR}/.installed"
+ >> "$PORTAGE_BUILDDIR/.installed" || \
+ die "Failed to create $PORTAGE_BUILDDIR/.installed"
- vecho ">>> Completed installing ${PF} into ${D}"
+ vecho ">>> Completed installing ${PF} into ${ED}"
vecho
ebuild_phase post_src_install