Changeset 35851 for main/trunk


Ignore:
Timestamp:
2022-01-02T17:42:35+13:00 (2 years ago)
Author:
davidb
Message:

Extended so it can take a year as a parameter on the command line; if none given, then defaults to 2015 as before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA--SMALL.sh

    r35842 r35851  
    11#!/bin/bash
    22
    3 ./01-DOWNLOAD-ESC-LOD-DATA.sh local--countries-in-esc-by-year-just-2015--with-errata.sparql
     3if [ $# = 0 ] ; then
     4    YEAR=2015
     5    sparql_file="local--countries-in-esc-by-year-just-2015--with-errata.sparql"
     6else
    47
     8    YEAR=$1
     9    sparql_file="local--countries-in-esc-by-year-just-$YEAR--with-errata.sparql"
     10   
     11    cat errata-lod/local--countries-in-esc-by-year-just-YYYY--with-errata.sparql.in \
     12    | sed "s/YYYY/$YEAR/g" > "errata-lod/$sparql_file"
     13fi
     14
     15echo ""
     16echo "Small collection SPARQL download restricting entries to the year:"
     17echo "  $YEAR"
     18echo ""
     19
     20./01-DOWNLOAD-ESC-LOD-DATA.sh $sparql_file
Note: See TracChangeset for help on using the changeset viewer.