diff --git a/create-geojson.sh b/create-geojson.sh index ae3bd07..6444a5c 100755 --- a/create-geojson.sh +++ b/create-geojson.sh @@ -6,7 +6,16 @@ for file in *.csv ; do echo "file exists: ${out}, skipping." continue fi - echo ./lookup.py "${file}" - ./lookup.py "${file}" > "${out}" - #~ ./lookup.py "${file}" 2>/dev/null > "${out}" + #~ echo ./lookup.py "${file}" + #~ ./lookup.py "${file}" > "${out}" + + fs=$(stat -t "${out}" |cut -d" " -f2) + data="vebit-geojson/" + + if test $fs -gt 0 -a -d "$data" ; then + cp -f "${out}" "$data" + cd "$data" + git commit "${out}" -m "update file" && git push + fi + done