diff options
author | Loïc Hoguin <[email protected]> | 2024-11-25 11:32:09 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-11-25 11:32:31 +0100 |
commit | b73e7aaa1d63bcf785ec10c438bd8fe996e60ce2 (patch) | |
tree | d48c45e8c7ca9f642b862437f67d74c1d3d48271 /scrape_hexpm.sh | |
parent | 79413746470f1ea112ac57ed189e39e71ac22cdd (diff) | |
download | erlang.mk-b73e7aaa1d63bcf785ec10c438bd8fe996e60ce2.tar.gz erlang.mk-b73e7aaa1d63bcf785ec10c438bd8fe996e60ce2.tar.bz2 erlang.mk-b73e7aaa1d63bcf785ec10c438bd8fe996e60ce2.zip |
Update hexpm_packages.txt
The scrape file was updated to only seek "rebar3"
tagged packages. There are too many Elixir-only
packages tagged as "make".
Diffstat (limited to 'scrape_hexpm.sh')
-rwxr-xr-x | scrape_hexpm.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scrape_hexpm.sh b/scrape_hexpm.sh index a4a59f7..be83caf 100755 --- a/scrape_hexpm.sh +++ b/scrape_hexpm.sh @@ -3,7 +3,7 @@ # This script will scrape packages from hex.pm that are believed to be # Erlang packages. We do this by first walking through all packages and # then getting the most recent release of each package. If the build tools -# listed contain "rebar3" or "make" we keep them and write the package +# listed contain "rebar3" we keep them and write the package # name and version to a file. # # This script should only be run occasionally to refresh the file @@ -12,8 +12,6 @@ # @todo Some of the projects fetched are Elixir despite indicating # "rebar3" or "make". We should ignore them here once identified # so they don't make it to the output. -# @todo Probably better to only check "rebar3" since many Elixir -# projects include "make". NUM=1 @@ -32,7 +30,7 @@ while true; do NAME=$(echo $NAMEURL | awk '{print $1;}') URL=$(echo $NAMEURL | awk '{print $2;}') - VERSION=$(curl -s "$URL" | jq 'select(.meta.build_tools | index("rebar3") or index("make")) | .version | tostring') + VERSION=$(curl -s "$URL" | jq 'select(.meta.build_tools | index("rebar3")) | .version | tostring') VERSION=$(echo $VERSION | tr -d '"') if [ -n "$VERSION" ]; then |