Changeset 32976


Ignore:
Timestamp:
2019-04-04T15:18:10+13:00 (5 years ago)
Author:
davidb
Message:

Fixed mistake in variable assignment; extended code to take doc-id and page-num

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/is-sheet-music-encore/trunk/RUN.sh

    r32952 r32976  
    11#!/bin/bash
    22
    3 if [ $# != 1 ] ; then
    4   echo "Usage: ./RUN.sh doc_id" 1>&2
     3if [ $# != 2 ] ; then
     4  echo "Usage: ./RUN.sh doc_id page" 1>&2
    55  exit 1
    66fi
    77
    8 $doc_id=$1
     8doc_id=$1
     9page_num=$2
    910
    10 echo "Retrieving doc id: $doc_id -> $doc_id.png"
     11output_file="download-images/$doc_id-$page_num.png"
     12echo "Retrieving doc-id-page: $doc_id-$page_num -> $output_file"
    1113echo ""
    1214
    13 ./dapiclient2-extended.pl "$doc_id" > "$doc_id.png"
     15./dapiclient2-extended.pl "$doc_id/$page_num" > "$output_file"
    1416
    1517
Note: See TracChangeset for help on using the changeset viewer.