]> git.plutz.net Git - serve0/blobdiff - db_meta.sh
include storage functions
[serve0] / db_meta.sh
index f194385ed9ce0bb6614ea24931c4f6dad4b38a98..5b375f703c30e5ed66d669755aa86743acd6679a 100755 (executable)
@@ -3,6 +3,8 @@
 [ "$include_dbmeta" ] && return 0
 include_dbmeta="$0"
 
+. "$_EXEC/cgilite/storage.sh"
+
 # == FILE FORMAT ==
 # LENGTH       WIDTH   HEIGHT  TAGS    COMMENT NAME
 
@@ -74,7 +76,7 @@ update_meta(){
                "$(STRING "${name-$(UNSTRING "${NAME%${CR}}")}")"
       else
         printf '%i     %i      %i      tags=%s comment=%s      %s\r\n' \
-               "$length" "$width" "$height" "${TAGS#tags=}" \
+               "$LENGTH" "$WIDTH" "$HEIGHT" "${TAGS#tags=}" \
                "${COMMENT#comment=}" "${NAME%${CR}}"
       fi
     done <"$meta_db" >"${meta_db}.$$"