summaryrefslogtreecommitdiff
path: root/nupdf/files/nupdf.sh
diff options
context:
space:
mode:
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"