aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-10-26 14:35:26 +0300
committerLoïc Hoguin <[email protected]>2016-10-26 14:35:26 +0300
commit7f148006fdd35992bd90ca24c70b5f0e00a8f719 (patch)
tree9d84c120f92258369a36cec566fe721a3a21b6df
parent35d40f341f1bebc7b3a9f927b4689354bb42cfe8 (diff)
downloaderlang.mk-7f148006fdd35992bd90ca24c70b5f0e00a8f719.tar.gz
erlang.mk-7f148006fdd35992bd90ca24c70b5f0e00a8f719.tar.bz2
erlang.mk-7f148006fdd35992bd90ca24c70b5f0e00a8f719.zip
Better FreeBSD fix
-rw-r--r--plugins/sfx.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/sfx.mk b/plugins/sfx.mk
index 2ea4934..75d34da 100644
--- a/plugins/sfx.mk
+++ b/plugins/sfx.mk
@@ -24,7 +24,7 @@ ARCHIVE=`awk '/^__ARCHIVE_BELOW__$$/ {print NR + 1; exit 0;}' $$0`
FILENAME=$$(basename $$0)
REL=$${FILENAME%.*}
-tail -n+$$ARCHIVE $$0 | tar xz -C $$TMPDIR
+tail -n+$$ARCHIVE $$0 | tar -xzf - -C $$TMPDIR
$$TMPDIR/$$REL/bin/$$REL console
RET=$$?
@@ -38,10 +38,8 @@ endef
sfx:
$(call render_template,sfx_stub,$(SFX_OUTPUT))
- $(gen_verbose) tar -C $(RELX_OUTPUT_DIR) -czf $(RELX_OUTPUT_DIR)/$(RELX_RELEASE).tgz $(RELX_RELEASE)
- $(verbose) cat $(RELX_OUTPUT_DIR)/$(RELX_RELEASE).tgz >> $(SFX_OUTPUT)
+ $(gen_verbose) tar -C $(RELX_OUTPUT_DIR) -czf - $(RELX_RELEASE) >> $(SFX_OUTPUT)
$(verbose) chmod +x $(SFX_OUTPUT)
- $(verbose) rm $(RELX_OUTPUT_DIR)/$(RELX_RELEASE).tgz
endif
endif