mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-24 20:02:28 +02:00
[nupdf] fix the static path bug. thanks Werner
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
9f1726ee98
commit
d7b3e28f05
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user