Skip to content

Commit

Permalink
Merge pull request #19 from rlipscombe/bsd-options
Browse files Browse the repository at this point in the history
fix: some compatibility issues with non GNU environments
  • Loading branch information
elbrujohalcon authored Oct 19, 2022
2 parents f7088da + 5350d30 commit 81ccb60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ endif
cd elvis-$(ELVIS_VERSION) && \
$(ELVIS_REBAR3) escriptize
$(gen_verbose) cp $(ELVIS_BUILD_DIR)/elvis-$(ELVIS_VERSION)/_build/default/bin/elvis $(ELVIS)
$(gen_verbose) cp --no-clobber $(ELVIS_BUILD_DIR)/elvis-$(ELVIS_VERSION)/elvis.config $(ELVIS_CONFIG)
$(gen_verbose) [ -e $(ELVIS_CONFIG) ] || \
cp -n $(ELVIS_BUILD_DIR)/elvis-$(ELVIS_VERSION)/elvis.config $(ELVIS_CONFIG)
$(verbose) chmod +x $(ELVIS)
$(verbose) rm -rf $(ELVIS_BUILD_DIR)/elvis-$(ELVIS_VERSION)
$(verbose) rm $(ELVIS_BUILD_DIR)/$(ELVIS_CODE_ARCHIVE)
$(verbose) rm --force $(ELVIS_BUILD_DIR)/rebar3
$(verbose) rmdir --ignore-fail-on-non-empty $(ELVIS_BUILD_DIR)
$(verbose) rm -f $(ELVIS_BUILD_DIR)/rebar3
$(if $(shell ls -A $(ELVIS_BUILD_DIR)/),,$(verbose) rmdir $(ELVIS_BUILD_DIR))

elvis: $(ELVIS)
$(verbose) $(ELVIS) rock -c $(ELVIS_CONFIG) $(ELVIS_OPTS)
Expand Down

0 comments on commit 81ccb60

Please sign in to comment.