create customupdate package for launchpad installation

This change also modifies installation directory for install
and customupdate make targets to /mnt/us/kindlepdfviewer
pull/2/merge
Dobrica Pavlinusic 12 years ago
parent 70ae351702
commit f74def7a69

@ -127,8 +127,19 @@ $(LUALIB):
thirdparty: $(MUPDFLIBS) $(THIRDPARTYLIBS) $(LUALIBS)
INSTALL_DIR=kindlepdfviewer
install:
# install to kindle using USB networking
scp kpdfview *.lua root@192.168.2.2:/mnt/us/test/
scp kpdfview *.lua root@192.168.2.2:/mnt/us/$(INSTALL_DIR)/
scp launchpad/* root@192.168.2.2:/mnt/us/launchpad/
VERSION?=$(shell git rev-parse --short HEAD)
customupdate: kpdfview
# ensure that build binary is for ARM
file kpdfview | grep ARM || exit 1
mkdir $(INSTALL_DIR)
cp -p README.TXT COPYING kpdfview *.lua $(INSTALL_DIR)
zip -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/
rm -Rf $(INSTALL_DIR)
@echo "copy kindlepdfviewer-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I"

@ -1,6 +1,6 @@
#!/bin/sh
echo unlock > /proc/keypad
echo unlock > /proc/fiveway
cd /mnt/us/test/
cd /mnt/us/kindlepdfviewer/
./reader.lua /mnt/us/documents
echo 1 > /proc/eink_fb/update_display

Loading…
Cancel
Save