home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
CDTools
/
S
/
ShowPDF
< prev
next >
Wrap
AmigaDOS Script File
|
2000-01-11
|
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: AACD06: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 AACD06: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