Changeset 32976 for other-projects

Show
Ignore:
Timestamp:
04.04.2019 15:18:10 (5 months ago)
Author:
davidb
Message:

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

Files:
1 modified

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