mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Add README.md to Linux package (#11859)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
LINUX_DIR = $(PLATFORM_DIR)/linux
|
||||
LINUX_PACKAGE:=koreader-linux-$(LINUX_ARCH_NAME)$(KODEDUG_SUFFIX)-$(VERSION).tar.xz
|
||||
|
||||
GLIBC_VERSION := $(shell ldd --version | sed -n '1s/.* \([0-9.]\+\)$$/\1/p')
|
||||
|
||||
update: all
|
||||
mkdir -pv \
|
||||
$(INSTALL_DIR)/linux/bin \
|
||||
@@ -26,6 +28,12 @@ update: all
|
||||
find $(INSTALL_DIR)/linux -type f \( -name ".git" -o -name ".gitignore" -o -name "discovery2spore" -o -name "wadl2spore" -o -name "*.txt" -o -name "LICENSE*" -o -name "NOTICE" -o -name "README.md" \) -print0 | xargs -0 rm -rf
|
||||
find $(INSTALL_DIR)/linux -type d \( -name "test" -o -name ".github" \) -print0 | xargs -0 rm -rf
|
||||
|
||||
# add instructions
|
||||
sed -e 's/%%VERSION%%/$(VERSION)/' \
|
||||
-e 's/%%ARCH%%/$(LINUX_ARCH_NAME)/' \
|
||||
-e 's/%%ABI%%/$(GLIBC_VERSION)/' \
|
||||
$(LINUX_DIR)/instructions.txt >$(INSTALL_DIR)/linux/README.md
|
||||
|
||||
# fix permissions
|
||||
chmod -R u=rwX,og=rX $(INSTALL_DIR)/linux
|
||||
XZ_OPT=9 tar -C $(INSTALL_DIR)/linux -cvJf $(LINUX_PACKAGE) .
|
||||
|
||||
Reference in New Issue
Block a user