Created
May 8, 2015 03:27
-
-
Save swiftgeek/c4c5d24a6a0b467dc8bd to your computer and use it in GitHub Desktop.
cpan rss generation for archlinux aur packages (upstream cpan repo rss)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take output to rssmix.com