Skip to content

Commit cb713a3

Browse files
author
Peter Szabo
committed
added pdfsizeopt.trampoline
1 parent 3402ac2 commit cb713a3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pdfsizeopt.trampoline

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#! /bin/sh
2+
# by pts@fazekas.hu at Tue Jan 24 22:09:53 CET 2017
3+
#
4+
# See the README.txt how this script is is used for binary installations of
5+
# pdfsizeopt on Linux.
6+
#
7+
8+
L0="`readlink "$0"`"
9+
if test "$L0"; then
10+
PDFSIZEOPT_DIR="${L0%/*}"
11+
test "${PDFSIZEOPT_DIR#/}" = "$PDFSIZEOPT_DIR" &&
12+
PDFSIZEOPT_DIR="${0%/*}/$PDFSIZEOPT_DIR"
13+
else
14+
PDFSIZEOPT_DIR="${0%/*}"
15+
fi
16+
export PYTHONPATH="$PDFSIZEOPT_DIR/pdfsizeopt.single"
17+
exec "$PDFSIZEOPT_DIR"/pdfsizeopt_libexec/python -c 'import sys; del sys.path[0]; import mainrun' ${1+"$@"}

0 commit comments

Comments
 (0)