diff --git a/Makefile b/Makefile index d3a61503c..4d094c33b 100644 --- a/Makefile +++ b/Makefile @@ -459,8 +459,7 @@ linuxupdate: all find $(INSTALL_DIR)/linux -executable -type f -print0 | xargs -0 chmod 755 find $(INSTALL_DIR)/linux -type f \( -name "COPYING" -o -name "git-rev" -o -name "*manifest" -o -name "*.cff" -o -name "*.css" -o -name "*.desktop" -o -name "*.json" -o -name "*.html" -o -name "*.lua" -o -name "*.pattern" -o -name "*.png" -o -name "*.otf" -o -name "*.po*" -o -name "*.so*" -o -name "*.svg" -o -name "*.template" -o -name "*.tpl" -o -name "*.ttf" \) -print0 | xargs -0 chmod 644 find $(INSTALL_DIR)/linux -type f -name "reader.lua" -print0 | xargs -0 chmod 755 - cd $(INSTALL_DIR)/linux/usr && \ - XZ_OPT=9 tar -cvJf ../../../$(LINUX_PACKAGE) * + XZ_OPT=9 tar -C $(INSTALL_DIR)/linux/usr -cvJf $(INSTALL_DIR)/$(LINUX_PACKAGE) . rm -rf $(INSTALL_DIR)/linux