1 | #!/bin/bash
|
---|
2 |
|
---|
3 |
|
---|
4 | echo ""
|
---|
5 | echo "Copying:"
|
---|
6 |
|
---|
7 | for d in ../import/sparqlresults-* ; do
|
---|
8 | if [ -d "$d" ] ; then
|
---|
9 | echo " errata-categories/metadata-esc-year/metadata_esc.json -> $d/."
|
---|
10 | /bin/cp "errata-categories/metadata-esc-year/metadata_esc.json" "$d/."
|
---|
11 | fi
|
---|
12 |
|
---|
13 | done
|
---|
14 |
|
---|
15 |
|
---|
16 | ia_dir=../import/inaugural-year
|
---|
17 | if [ ! -d $ia_dir ] ; then
|
---|
18 | echo "Making directory $ia_dir"
|
---|
19 | mkdir "$ia_dir"
|
---|
20 | fi
|
---|
21 |
|
---|
22 | echo ""
|
---|
23 | echo "Copying:"
|
---|
24 |
|
---|
25 | ls errata-categories/metadata-esc-year/*1956*.nul >/dev/null 2>&1
|
---|
26 | has_1956_nul_files_status=$?
|
---|
27 |
|
---|
28 | if [ $has_1956_nul_files_status = 0 ] ; then
|
---|
29 | echo " errata-categories/metadata-esc-year/*1956*.nul -> $ia_dir/."
|
---|
30 | /bin/cp "errata-categories/metadata-esc-year/"*1956*.nul "$ia_dir/."
|
---|
31 | fi
|
---|
32 |
|
---|
33 | echo " errata-categories/metadata-esc-year/metadata_esc.json -> $ia_dir/."
|
---|
34 | /bin/cp "errata-categories/metadata-esc-year/metadata_esc.json" "$ia_dir/."
|
---|
35 |
|
---|
36 |
|
---|
37 | miscat_dir=../import/missing-cat-countries
|
---|
38 | if [ ! -d $miscat_dir ] ; then
|
---|
39 | echo "Making directory $miscat_dir"
|
---|
40 | mkdir "$miscat_dir"
|
---|
41 | fi
|
---|
42 |
|
---|
43 | echo ""
|
---|
44 | echo "Copying:"
|
---|
45 | echo " errata-categories/missing-cat-countries/* -> $miscat_dir/."
|
---|
46 | /bin/cp "errata-categories/missing-cat-countries/"* "$miscat_dir/."
|
---|
47 |
|
---|
48 |
|
---|
49 | echo "****"
|
---|
50 | echo "**** Commenting out the section of the script that does a 'force' 2021"
|
---|
51 | echo "****"
|
---|
52 |
|
---|
53 | #forced2021_dir=../import/sparqlresults-local--countries-in-esc-by-year-after-1956--with-errata.00000001
|
---|
54 |
|
---|
55 | #ls errata-categories/metadata-esc-year/*2021*.nul >/dev/null 2>&1
|
---|
56 | #has_2021_nul_files_status=$?
|
---|
57 | #
|
---|
58 | #if [ $has_2021_nul_files_status = 0 ] ; then
|
---|
59 | # echo ""
|
---|
60 | # echo "Copying (forcing 2021 files into 00000001 import area):"
|
---|
61 | # echo " errata-categories/metadata-esc-year/*2021.nul -> $forced2021_dir/."
|
---|
62 | # /bin/cp "errata-categories/metadata-esc-year/"*2021.nul "$forced2021_dir/."
|
---|
63 | #fi
|
---|
64 |
|
---|
65 | echo ""
|
---|
66 |
|
---|
67 |
|
---|