root/main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/PREPARE-IMPORT.sh @ 33248

Revision 33248, 0.6 KB (checked in by davidb, 4 months ago)

Test and create for-download directory if needed

  • Property svn:executable set to *
RevLine 
[33029]1#!/bin/bash
2
3
[33188]4#python prepare/xls-to-csv.py import/Report\ spreadsheet\ for\ website\ Feb\ 2019.xls
5
[33248]6if [ ! -d for-download ] ; then
7  echo "Creating directory: for-download"
8  mkdir for-download
9fi
10
[33188]11echo "Generating sanitized CSV version of spreadsheet suitable for download through DL"
[33192]12python prepare/xls-to-sanitized-csv.py \
13  "import/Archaeological report PDFs 20190620.xlsx" \
[33202]14  "for-download/Archaeological-Reports-20190620.csv"
[33188]15
16echo "Generating PDF-Bound and Unbound CSV files for use in import.pl"
17python prepare/xls-to-csv.py "import/Archaeological report PDFs 20190620.xlsx"
18
19
Note: See TracBrowser for help on using the browser.