meme-tools

Meme format tools
git clone git://r-36.net/meme-tools
Log | Files | Refs | README | LICENSE

commit 90c08698f95114d2671862c0cb55688255ae5658
parent e4521f8dd9985f217760fcb6961a660eade591ba
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 25 May 2023 06:46:16 +0200

Make the meme and memeblob distinction.

Diffstat:
Mdir2meme | 11+++--------
Cdir2meme -> dir2memeblob | 0
2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/dir2meme b/dir2meme @@ -8,9 +8,8 @@ fi memefile="$1" outname="${memefile%.*}" -outzip="${outname}.meme.blob.zip" -[ ! -e "${memefile}" ] && printf "meme\n" > ${memefile} +printf "meme\n" > ${memefile} find . -type f \ | while read -r medianame; do @@ -22,12 +21,8 @@ do filename="$(basename "${medianame}")" memetag="${filename%.*}" - [ ! -e "${memefile}" ] && printf "#%s %s\n" "${memetag}" "${filename}" >> ${memefile} - zip -u "${outzip}" "${filename}" + printf "#%s %s\n" "${memetag}" "${filename}" >> "${memefile}" done -zip -u "${outzip}" "${memefile}" -rm "${memefile}" - -printf "%s\n" "${outzip}" +printf "%s\n" "${memefile}" diff --git a/dir2meme b/dir2memeblob