]> Sergey Matveev's repositories - meta4ra.git/blob - contrib/mk-meta4
*-hashes-detect, *-hash, *-check -stdin/-all-hashes, optional builtins
[meta4ra.git] / contrib / mk-meta4
1 #!/bin/sh -e
2
3 ext=meta4
4 opts="$@"
5 hashes="${META4RA_HASHES:-`meta4ra-hashes-detect`}"
6 find . -type f -maxdepth 1 -not -name "*.$ext" | while read f ; do
7     f="${f#./}"
8     [ "$f" != README ] || continue
9     [ ! -s "$f.$ext" ] || continue
10     pv --wait --name "$f" "$f" |
11     meta4ra-create $opts -hashes "$hashes" -fn "$f" -mtime "$f" > "$f".$ext
12 done