From d7b3e28f05e80e721910d1c3a8d19a91da36f51e Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 1 Nov 2010 21:59:09 +0800 Subject: [PATCH] [nupdf] fix the static path bug. thanks Werner Signed-off-by: Xiangfu Liu --- nupdf/Makefile | 2 +- nupdf/files/nupdf.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nupdf/Makefile b/nupdf/Makefile index 4a789b6..d6b4f2d 100644 --- a/nupdf/Makefile +++ b/nupdf/Makefile @@ -46,7 +46,7 @@ define Package/nupdf/install $(1)/usr/bin $(1)/usr/share/nupdf $(INSTALL_BIN) \ - $(PKG_BUILD_DIR)/nupdf $(1)/usr/bin/nupdf.bin + $(PKG_BUILD_DIR)/nupdf $(1)/usr/share/nupdf/nupdf.bin $(INSTALL_BIN) \ $(FILES_DIR)/nupdf.sh $(1)/usr/bin/nupdf diff --git a/nupdf/files/nupdf.sh b/nupdf/files/nupdf.sh index 3336390..25b6d1a 100644 --- a/nupdf/files/nupdf.sh +++ b/nupdf/files/nupdf.sh @@ -1,3 +1,11 @@ #!/bin/sh + +if [ "${1#/}" = "$1" ]; +then + f=`pwd`/$1; +else + f=$1; +fi; + cd /usr/share/nupdf -/usr/bin/nupdf.bin $* +./nupdf.bin "$f"