source: gs3-installations/whakatohea-dl/trunk/sites/wmtb/bin/script/metamaster-download-and-convert.sh@ 37416

Last change on this file since 37416 was 37416, checked in by davidb, 14 months ago

Commandline scripts designed to work with UnknownConverterPlugin

  • Property svn:executable set to *
File size: 530 bytes
Line 
1#!/bin/bash
2
3if [ $# != 2 ] ; then
4 echo "" >&2
5 echo "Usage: " >&2
6 echo " $0 [Document|Video|Audio|Image|Taonga] output.xslx" >&2
7 echo "" >&2
8 echo "For example:" >&2
9 echo " $0 Image Metamaster-Imagesheet.xlsx" >&2
10 echo "" >&2
11 exit 1
12fi
13
14sheetname=$1
15xslx_filename=$2
16
17full_progdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
18
19cd "$full_progdir" \
20 && ./metamaster-download.sh $sheetname $xslx_filename \
21 && ./metamaster-xlsx-to-csv.py $sheetname $xslx_filename
22
Note: See TracBrowser for help on using the repository browser.