added dvi and djvu support
This commit is contained in:
+7
-2
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# @(#$Id: rclps,v 1.5 2006-01-27 13:37:31 dockes Exp $ (C) 2004 J.F.Dockes
|
||||
# @(#$Id: rclps,v 1.6 2006-02-03 10:53:35 dockes Exp $ (C) 2004 J.F.Dockes
|
||||
# Parts taken from Estraier:
|
||||
#================================================================
|
||||
# Estraier: a personal full-text search system
|
||||
@@ -34,6 +34,11 @@ then
|
||||
fi
|
||||
|
||||
infile="$1"
|
||||
if test X$infile = X- ; then
|
||||
cmd=$decoder
|
||||
else
|
||||
cmd="$decoder $1"
|
||||
fi
|
||||
|
||||
iscmd()
|
||||
{
|
||||
@@ -62,7 +67,7 @@ checkcmds()
|
||||
checkcmds $decoder iconv awk
|
||||
|
||||
# check the input file existence
|
||||
if test ! -f "$infile"
|
||||
if test X$infile != X- -a ! -f "$infile"
|
||||
then
|
||||
printf '%s: %s: no such file\n' "$progname" "$infile"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user