summaryrefslogtreecommitdiff
path: root/nupdf/files/nupdf.sh
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /nupdf/files/nupdf.sh
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-master.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'nupdf/files/nupdf.sh')
-rw-r--r--nupdf/files/nupdf.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/nupdf/files/nupdf.sh b/nupdf/files/nupdf.sh
new file mode 100644
index 0000000..25b6d1a
--- /dev/null
+++ b/nupdf/files/nupdf.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "${1#/}" = "$1" ];
+then
+ f=`pwd`/$1;
+else
+ f=$1;
+fi;
+
+cd /usr/share/nupdf
+./nupdf.bin "$f"