continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject html export of projects
Date Thu, 22 Jun 2006 17:38:33 GMT
Figured I'd share this little bit of bash I hacked up to help in  
upgrading continuum.  Sucks down all the project defs so you can see  
exactly how to re-setup everything.

--get_project_defs.sh--
#!/bin/bash

wget -O projects.html http://ci.gbuild.org/continuum/servlet/continuum
for n in $(egrep 'fid.*/id/' projects.html | perl -pe  
's/.*href="|;jsession.*//g'); do
   id=${n/*id\//}
   wget -O $id.html $n
done
perl -i.bak -pe 's,http://[^<>]+/id/([0-9]+),$1.html,g' projects.html

# then just open projects.html
-----------------------


-David


Mime
View raw message