Skip to content

Instantly share code, notes, and snippets.

@swiftgeek
Created May 8, 2015 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swiftgeek/c4c5d24a6a0b467dc8bd to your computer and use it in GitHub Desktop.
Save swiftgeek/c4c5d24a6a0b467dc8bd to your computer and use it in GitHub Desktop.
cpan rss generation for archlinux aur packages (upstream cpan repo rss)
#!/bin/bash
packages=( `curl -s "https://aur.archlinux.org/packages/?SeB=m&K=swiftgeek" | tr \" "\n" | grep '^/packages/' | grep perl | awk -F/ '{print $3};' | tr '\n' ' '` )
for package in ${packages[*]}; do
perl_module=$(curl -s "https://aur.archlinux.org/packages/${package}/" | tr \" "\n" | grep -m1 '^https://meta' | awk -F/ '{print $5};')
echo "https://metacpan.org/feed/distribution/${perl_module}"
done
@swiftgeek
Copy link
Author

Take output to rssmix.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment