Skip to content

Instantly share code, notes, and snippets.

@martin-g
Created March 21, 2024 09:57
Show Gist options
  • Save martin-g/b64483b4d2c98187595c146cafa8b2dd to your computer and use it in GitHub Desktop.
Save martin-g/b64483b4d2c98187595c146cafa8b2dd to your computer and use it in GitHub Desktop.
Generates a tab separated values file with all Bioconda recipe names and their aarch64/noarch status
#!/usr/bin/env bash
# set -x
RECIPES_PATH=${1:-recipes}
AARCH64_STATUS_FILE="/home/martin/git/bioconda/bioconda-stats/package-downloads/anaconda.org/bioconda/aarch64-status.tsv"
rm -f ${AARCH64_STATUS_FILE}
echo -e "package\thas-aarch64\tnoarch" > ${AARCH64_STATUS_FILE}
for recipe in `ls ${RECIPES_PATH}`; do
metayaml="${RECIPES_PATH}/${recipe}/meta.yaml"
if test -f ${metayaml}; then
# echo "Going to check ${metayaml}";
is_noarch=$(grep -c "noarch:" ${metayaml})
has_aarch64=$(grep -c "\- linux-aarch64" ${metayaml})
echo -e "${recipe}\t${has_aarch64}\t${is_noarch}" >> ${AARCH64_STATUS_FILE}
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment