Skip to content

Commit

Permalink
added pdfsizeopt.trampoline
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Szabo committed Jan 24, 2017
1 parent 3402ac2 commit cb713a3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pdfsizeopt.trampoline
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#! /bin/sh
# by [email protected] at Tue Jan 24 22:09:53 CET 2017
#
# See the README.txt how this script is is used for binary installations of
# pdfsizeopt on Linux.
#

L0="`readlink "$0"`"
if test "$L0"; then
PDFSIZEOPT_DIR="${L0%/*}"
test "${PDFSIZEOPT_DIR#/}" = "$PDFSIZEOPT_DIR" &&
PDFSIZEOPT_DIR="${0%/*}/$PDFSIZEOPT_DIR"
else
PDFSIZEOPT_DIR="${0%/*}"
fi
export PYTHONPATH="$PDFSIZEOPT_DIR/pdfsizeopt.single"
exec "$PDFSIZEOPT_DIR"/pdfsizeopt_libexec/python -c 'import sys; del sys.path[0]; import mainrun' ${1+"$@"}

0 comments on commit cb713a3

Please sign in to comment.