X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=contrib%2Fmk-meta4;fp=contrib%2Fmk-meta4;h=b95a718d46fd0994551045b7f1d200048a15a206;hb=be69a4fc0c240c2772a0f0bf0955b39783e4c48a;hp=0000000000000000000000000000000000000000;hpb=ce902a58a32f42801603475c67dd75da86d4502a;p=meta4ra.git diff --git a/contrib/mk-meta4 b/contrib/mk-meta4 new file mode 100755 index 0000000..b95a718 --- /dev/null +++ b/contrib/mk-meta4 @@ -0,0 +1,12 @@ +#!/bin/sh -e + +ext=meta4 +opts="$@" +hashes="${META4RA_HASHES:-`meta4ra-hashes-detect`}" +find . -type f -maxdepth 1 -not -name "*.$ext" | while read f ; do + f="${f#./}" + [ "$f" != README ] || continue + [ ! -s "$f.$ext" ] || continue + pv --wait --name "$f" "$f" | + meta4ra-create $opts -hashes "$hashes" -fn "$f" -mtime "$f" > "$f".$ext +done