-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Szabo
committed
Jan 24, 2017
1 parent
3402ac2
commit cb713a3
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+"$@"} |