ref: df600ad1a1ae4fa31cb31d7e359af803da1c3aff
parent: bfae4b0ac8b5ce076a1c8f7b51c7336ee5333bb5
author: Alex Musolino <amusolino@topcon.com>
date: Mon Jan 16 10:31:17 EST 2023
add support for ingestion of *.HEIC files
--- a/sdrip/archive.rc
+++ b/sdrip/archive.rc
@@ -1,6 +1,6 @@
#!/bin/rc
-ls *.JPG *.HEIC | awk -F_ '{
+{{ls *.JPG; ls *.HEIC} >[2]/dev/null} | awk -F_ '{
year=substr($1, 1, 4)
month=substr($1, 5, 2)
dirs[sprintf("%s/%s", year, month)] = 1
--- a/sdrip/rename.rc
+++ b/sdrip/rename.rc
@@ -1,9 +1,9 @@
#!/bin/rc -e
rename jpg JPG *.jpg >[2]/dev/null || {}
-exiv2 --verbose --Force -t rename *.JPG *.HEIC
+exiv2 --verbose --Force -t rename `{{ls *.JPG; ls *.HEIC} >[2]/dev/null}
-sha1sum *.JPG *.HEIC >[2]/dev/null | awk '
+sha1sum `{{ls *.JPG; ls *.HEIC} >[2]/dev/null} | awk '
function quote(s){
gsub("''", "''''", s)
return sprintf("%s", s)