/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1

« back to all changes in this revision

Viewing changes to scripts/pdf2images.sh

  • Committer: Gustav Hartvigsson
  • Date: 2024-07-10 14:25:13 UTC
  • Revision ID: git-v1:55fc68b13933a25315ad96a4c69e64d962d2c2d4
Fixed install script's --target flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
___SCALE=250
10
10
___HAS_OPTIPNG=1
11
11
 
12
 
function ___usage () {
13
 
  echo "pdf2images.sh --- Convert a range of pdf pages into pngs."
 
12
function ___help () {
 
13
  echo "Convert a range of pages into pngs."
14
14
  echo "USAGE:"
15
15
  echo "    pdf2images.sh <file>.pdf <first page> <last page>"
16
16
  echo ""
61
61
 
62
62
function ___parse_args () {
63
63
  if [ $# -eq 0 ]; then
64
 
    ___usage
 
64
    ___help
65
65
    exit 1
66
66
  fi
67
67
  
75
75
  if [ $# -ne 0 ]; then
76
76
    echo "Nummber of arguments missmatch."
77
77
    echo ""
78
 
    ___usage
 
78
    ___help
79
79
    exit 1
80
80
  fi
81
81
}