Skip to content

Commit

Permalink
lang/ruby/gem.mk: try removing empty directories
Browse files Browse the repository at this point in the history
Try removing empty directories in order to remove junk from
"make print-PLIST".
  • Loading branch information
taca committed May 26, 2024
1 parent a676986 commit b925e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/ruby/gem.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: gem.mk,v 1.53 2023/11/30 00:21:12 taca Exp $
# $NetBSD: gem.mk,v 1.54 2024/05/26 00:15:32 taca Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
Expand Down Expand Up @@ -333,6 +333,7 @@ _gem-build-install-root:
@${STEP_MSG} "Installing gem into installation root"
${RUN} ${SETENV} ${MAKE_ENV} ${RUBYGEM_ENV} \
${RUBYGEM} install --backtrace ${RUBYGEM_OPTIONS} ${_RUBYGEM_OPTIONS}
${RUN} cd ${RUBYGEM_INSTALL_ROOT}${PREFIX}/${GEM_HOME} && rmdir * 2>/dev/null || ${TRUE}

# The ``gem'' command doesn't exit with a non-zero result even if the
# install of the gem failed, so we do the check and return the proper exit
Expand Down

0 comments on commit b925e5a

Please sign in to comment.