File: main.wsh

package info (click to toggle)
whizzytex 1.3.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,204 kB
  • ctags: 511
  • sloc: lisp: 3,414; sh: 1,590; makefile: 259
file content (20 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Implements -ps2pdf
# We asume that it was lauched with -advi 

mycopy () {
    FROM="$1"
    $DVIPS -o "$TMP/$FROM.ps" "$FROM" 2>/dev/null && \
    rm $FROM && \
    ps2pdf "$TMP/$FROM.ps" "$FROM.pdf" && \
    # Change of target should be atomic. 
    mv "$FROM.pdf" "$2"
}

WHIZZYTMPFILES="{$NAME.dvi.ps,$WHIZZY.dvi.ps}"

SIGDVI=$SIGPDF
DVICOPY=mycopy
LEVEL=1
RELOAD=xpdfreload
VIEWCOMMAND="xpdf -remote $$"