Created
May 23, 2012 03:56
-
-
Save fictorial/2773190 to your computer and use it in GitHub Desktop.
Generate description of all CocoaPods specs from HEAD
This file contains 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/sh | |
# 1. install multimarkdown | |
# 2. clone the CocoaPods/Specs repo to ~/OpenSource/Specs | |
cd ~/OpenSource/Specs | |
git pull | |
file=~/Desktop/cocoapods-specs.html | |
echo '' > $file | |
(for x in $(find . -type d -depth 1 | grep -v .git | sed -e 's/.\///') | |
do | |
latest=$(find $x -name \*podspec | xargs ls -1t | tail -1) | |
homepage=$(grep 's.homepage' $latest | cut -d= -f2- | sed -e "s/['\\]//g") | |
summary=$(grep 's.summary' $latest | cut -d= -f2- | sed -e "s/['\\]//g") | |
version=$(grep 's.version' $latest | cut -d= -f2- | sed -e "s/['\\]//g") | |
echo "[$x]($homepage) $version: $summary" | |
echo | |
done) | multimarkdown > $file | |
open $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://dl.dropbox.com/u/4153528/cocoapods.png