home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 19
/
AACD19.BIN
/
CDTools
/
S
/
ShowPDF
< prev
next >
Wrap
AmigaDOS Script File
|
2001-03-01
|
649b
|
44 lines
.key pdffile
.bra {
.ket }
; Check for a libx11 assign and make it if not
Assign libx11: EXISTS >NIL:
If WARN
set libassign 1
Assign libx11: AACD19:System/libs/libx11
EndIf
; look for xpdf in the command path
which xpdf
; otherwise pick relevant CPU version from CD
If WARN
CPU >NIL: check 68040
If WARN
set cmd xpdf020
Else
set cmd xpdf040
EndIf
Else
set cmd xpdf
EndIf
Which >NIL: $cmd
If WARN
set cmd AACD19:System/$cmd
EndIf
; Bring WB screen to front
failat 21
STool >NIL: F #?orkbenc#?
failat 10
;Set stack and run command
stack 25000
$cmd >NIL: {pdffile}
; Remove assign if made
If libassign EQ 1
Assign libx11:
EndIf