Merge pull request #2941 from miallo/compute-stats-in-memory

stats.sh: process files in memory instead of on disk
This commit is contained in:
Steven Black
2025-08-02 21:12:48 -04:00
committed by GitHub

View File

@@ -1,12 +1,13 @@
#!/usr/bin/env bash
echo \n "" > stats.out
# clear file
true > stats.out
for TAG_DATE in $(git tag --sort=creatordate --format='%(refname:short),%(creatordate:short)'); do
# echo "$TAG_DATE"
split=(${TAG_DATE//,/ })
# echo ${split[0]}
git checkout tags/${split[0]} readmeData.json
entries=$(jq '.base.entries' readmeData.json)
entries=$(git show tags/${split[0]}:readmeData.json | jq '.base.entries')
if [[ -z "$entries" ]]; then continue; fi
echo ${split[1]},${entries} >> stats.out
done