somegitdata / makefile
x
added binutils and git but do not have space for
2ea57e0
raw
history blame contribute delete
800 Bytes
default: github.com/xfce-mirror/xfce4-terminal.rwkv.jsonl github.com/xfce-mirror/xfce4-terminal.rwkv.sorted.jsonl
extra: default sourceware.org/git/binutils-gdb.rwkv.jsonl sourceware.org/git/binutils-gdb.rwkv.sorted.jsonl github.com/git/git.rwkv.jsonl github.com/git/git.rwkv.sorted.jsonl
%.rwkv.jsonl: %.git/
#{ git2jsonl/git2jsonl "$^"; git2jsonl/git2jsonl_base64 "$^"; } | sort --random-sort --random-source=/dev/zero > "$@" || { rm "$@"; false; }
git2jsonl/git2jsonl "$^" > "$@".unshuffed
sort --random-sort --random-source=/dev/zero "$@".unshuffed --output="$@.unshuffed"
mv -v "$@".unshuffed "$@"
rm -rf "$<"
%.sorted.jsonl: %.jsonl
cat "$<" | awk '{ print length, $$0 }' | sort -n -s | cut -d' ' -f2- > "$@"
%.git/:
mkdir -p "$$(dirname "$*")"
git clone --mirror https://"$*" "$@"