diff options
-rw-r--r-- | plugins/sfx.mk | 6 |
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 |