1234567891011121314151617181920 |
- #!/bin/sh
- # -*- shell-script -*-
- if [ $# -lt 1 ] ; then
- echo "open-pdf file [ page-number ]"
- exit
- fi
- if [[ $# == 2 ]] ; then
- if [[ -e `which evince` ]] ; then
- evince -p $2 $1
- else
- xpdf $1 $2
- fi
- else
- if [[ -e `which evince` ]] ; then
- evince $1
- else
- xpdf $1
- fi
- fi
|