Skip to content

Commit

Permalink
fix: some compatibility issues with non GNU environments
Browse files Browse the repository at this point in the history
refs #17
  • Loading branch information
andrei-mihaila authored and rlipscombe committed Oct 19, 2022
1 parent 696404c commit 81a1d45
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
$(verbose) [ -z "$(ls -A $(ELVIS_BUILD_DIR))" ] || rmdir $(ELVIS_BUILD_DIR)

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

0 comments on commit 81a1d45

Please sign in to comment.