summaryrefslogtreecommitdiff
path: root/sandbox/grubert/pdf1
blob: db5f32d84c308816d4a756e484365347180d9b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

DOCUTILS=../..
QWRITER=$DOCUTILS/tools/quicktest.py
OUT=test.pdf
TEXT=pdftest_3.txt

PYTHONPATH=`pwd`:$DOCUTILS:$PYTHONPATH

if [ -n "$1" -a -e "$1" ] ;  then
  TEXT=$1
  shift
fi

if [ -n "$1" ] ; then
  echo "-$1-"
  if [ $1 == "t" ] ; then
    $QWRITER -p $TEXT |less
    exit
  fi
fi

./pdf.py $TEXT $OUT