From 60779c44100d21a505f095b065fc226316e81152 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 24 Mar 2013 23:21:09 +0800 Subject: [PATCH 1/4] fix in README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4647f24e5..12be52db1 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Follow these steps: * install CREngine sources into subfolder "kpvcrlib/crengine" * install LuaJit sources into subfolder "luajit-2.0" * install popen_noshell sources into subfolder "popen-noshell" + * install libk2pdfopt sources into subfolder "libk2pdfopt" * automatically fetch thirdparty sources with Makefile: * make sure you have patch, wget, unzip, git and svn installed @@ -44,9 +45,9 @@ Follow these steps: * adapt Makefile to your needs - have a look at Makefile.defs in koreader-base * run `make thirdparty`. This will build MuPDF (plus the libraries it depends - on), libDjvuLibre, CREngine and Lua. + on), libDjvuLibre, CREngine, libk2pdfopt and Lua. -* run `make`. This will build the kpdfview application +* run `make`. This will build the koreader application Running From 7d60a4a44fc246e1d1725583f792f6ce42207340 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 24 Mar 2013 23:38:27 +0800 Subject: [PATCH 2/4] generate git-rev on package build --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bef6f9762..be60d0d24 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,8 @@ customupdate: koreader-base/koreader-base koreader-base/extr cp -rpL koreader-base/data/*.css $(INSTALL_DIR)/data cp -rpL koreader-base/fonts $(INSTALL_DIR) rm $(INSTALL_DIR)/fonts/droid/DroidSansFallbackFull.ttf - cp -r koreader-base/git-rev resources $(INSTALL_DIR) + echo $(VERSION) > git-rev + cp -r git-rev resources $(INSTALL_DIR) cp -rpL frontend $(INSTALL_DIR) mkdir $(INSTALL_DIR)/fonts/host zip -9 -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ extensions/ From 9546c5503b6549d1a58a05bfa048d594af317191 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 24 Mar 2013 23:52:39 +0800 Subject: [PATCH 3/4] update reader name in customupdate to koreader --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index be60d0d24..fa58ca393 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ VERSION=$(shell git describe HEAD) # subdirectory we use to build the installation bundle -INSTALL_DIR=kindlepdfviewer +INSTALL_DIR=koreader # files to copy from main directory LUA_FILES=reader.lua @@ -34,7 +34,7 @@ customupdate: koreader-base/koreader-base koreader-base/extr # ensure that the binaries were built for ARM file koreader-base/koreader-base | grep ARM || exit 1 file koreader-base/extr | grep ARM || exit 1 - rm -f kindlepdfviewer-$(VERSION).zip + rm -f koreader-$(VERSION).zip rm -rf $(INSTALL_DIR) mkdir -p $(INSTALL_DIR)/{history,screenshots,clipboard,libs} cp -p README.md COPYING koreader-base/koreader-base koreader-base/extr kpdf.sh $(LUA_FILES) $(INSTALL_DIR) @@ -49,6 +49,6 @@ customupdate: koreader-base/koreader-base koreader-base/extr cp -r git-rev resources $(INSTALL_DIR) cp -rpL frontend $(INSTALL_DIR) mkdir $(INSTALL_DIR)/fonts/host - zip -9 -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ extensions/ + zip -9 -r koreader-$(VERSION).zip $(INSTALL_DIR) launchpad/ extensions/ rm -rf $(INSTALL_DIR) - @echo "copy kindlepdfviewer-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I" + @echo "copy koreader-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I" From 2495d2c862a8e4225943857b22f29a58ee0da9b2 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 24 Mar 2013 23:59:08 +0800 Subject: [PATCH 4/4] include dbg instead for settings for DEBUG in font.lua --- frontend/ui/font.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/font.lua b/frontend/ui/font.lua index 8255fff24..3d9ec96cb 100644 --- a/frontend/ui/font.lua +++ b/frontend/ui/font.lua @@ -1,4 +1,4 @@ -require "settings" -- for DEBUG() +require "dbg" -- for DEBUG() Font = { fontmap = {