Skip to content

Instantly share code, notes, and snippets.

@fictorial
Created May 23, 2012 03:56
Show Gist options
  • Save fictorial/2773190 to your computer and use it in GitHub Desktop.
Save fictorial/2773190 to your computer and use it in GitHub Desktop.
Generate description of all CocoaPods specs from HEAD
#!/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
@fictorial
Copy link
Author

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