/ home / projects / blog / 2009 / 12 / bin-sh-while-read-line-do-echo-echo.php :: . : .. |
|
Dump sandbox checkouts: http://snipt.org/qKn .#!/bin/sh while read line do echo -------------------------- echo $line if [ -d $line/.svn ] then echo Subversion grep http $line/.svn/entries | head -n 1 grep svn:// $line/.svn/entries | head -n 1 elif [ -d $line/CVS ] then echo CVS cat $line/CVS/Root cat $line/CVS/Repository elif [ -d $line/.hg ] then echo Mercurial grep default $line/.hg/hgrc elif [ -d $line/.git ] then echo Git grep url $line/.git/config elif [ -d $line/_darcs ] then echo Darcs cat $line/_darcs/prefs/repos fi done < checkouts
posted by j 12/21/2009 11:27:00 AM