Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@swiftgeek swiftgeek commented May 8, 2015

Take output to rssmix.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.