1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 00:44:03 +02:00

[nupdf] fix the static path bug. thanks Werner

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-11-01 21:59:09 +08:00
parent 9f1726ee98
commit d7b3e28f05
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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"