From 8e2077ecc7fec4c9722427f5422bf6102fb40f48 Mon Sep 17 00:00:00 2001 From: Nathaniel Kelso Date: Sun, 20 May 2018 22:44:33 -0700 Subject: [PATCH] limit copying to just valid shp parts, not change logs --- run_all.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/run_all.sh b/run_all.sh index 627d321d..24c5e632 100755 --- a/run_all.sh +++ b/run_all.sh @@ -110,12 +110,13 @@ then ls -Gga x_tempshape/*/* # Update shape files ( if everything is OK! ) - cp -r x_tempshape/10m_cultural/* 10m_cultural/ - cp -r x_tempshape/10m_physical/* 10m_physical/ - cp -r x_tempshape/50m_cultural/* 50m_cultural/ - cp -r x_tempshape/50m_physical/* 50m_physical/ - cp -r x_tempshape/110m_cultural/* 110m_cultural/ - cp -r x_tempshape/110m_physical/* 110m_physical/ + # Don't copy over the change logs, though (limit file extension expansion listing) + cp -r x_tempshape/10m_cultural/*.{shp,dbf,shx,prj,cpg} 10m_cultural/ + cp -r x_tempshape/10m_physical/*.{shp,dbf,shx,prj,cpg} 10m_physical/ + cp -r x_tempshape/50m_cultural/*.{shp,dbf,shx,prj,cpg} 50m_cultural/ + cp -r x_tempshape/50m_physical/*.{shp,dbf,shx,prj,cpg} 50m_physical/ + cp -r x_tempshape/110m_cultural/*.{shp,dbf,shx,prj,cpg} 110m_cultural/ + cp -r x_tempshape/110m_physical/*.{shp,dbf,shx,prj,cpg} 110m_physical/ # test copy mode ( write again .. ) ./tools/wikidata/update.sh copy uppercase 10m_cultural ne_10m_admin_0_countries @@ -131,8 +132,9 @@ else # list new files ls -Gga x_tempshape/*/* # Update shape files ( if everything is OK! ) - cp -r x_tempshape/110m_cultural/* 110m_cultural/ - cp -r x_tempshape/110m_physical/* 110m_physical/ + # Don't copy over the change logs, though (limit file extension expansion listing) + cp -r x_tempshape/110m_cultural/*.{shp,dbf,shx,prj,cpg} 110m_cultural/ + cp -r x_tempshape/110m_physical/*.{shp,dbf,shx,prj,cpg} 110m_physical/ # test copy mode ( write again .. ) ./tools/wikidata/update.sh copy lowercase 110m_physical ne_110m_rivers_lake_centerlines