[vtkusers] bash script for checkouts
Darren Weber
darren.weber.lists at gmail.com
Mon Aug 18 21:40:53 EDT 2008
Below is a bash script that uses expect to automate the cvs login for
checkouts of kitware packages. There are several environment variables used
to specify release tags.
------------------------------------------------------------------------------
#!/bin/bash
# Check the kitware web sites to update these release tags
CMAKE_tag="CMake-2-6-1"
ITK_tag="ITK-3-8"
VTK_tag="VTK-5-2"
PARAVIEW_tag="ParaView-3-2-3"
KWWIDGETS_tag="DNow"
mkdir -p ~/src/kitware
cd ~/src/kitware
expect -c "
spawn cvs -d :pserver:anonymous at www.cmake.org:/cvsroot/CMake login;
expect \"CVS password:\";
send \"cmake\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
cvs -d :pserver:anonymous at www.cmake.org:/cvsroot/CMake co -r $CMAKE_tag
CMake
expect -c "
spawn cvs -d :pserver:anonymous at www.itk.org:/cvsroot/Insight login;
expect \"CVS password:\";
send \"insight\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
cvs -d :pserver:anonymous at www.itk.org:/cvsroot/Insight co -r $ITK_tag
Insight
cvs -d :pserver:anonymous at www.itk.org:/cvsroot/Insight co -r $ITK_tag
InsightDocuments
cvs -d :pserver:anonymous at www.itk.org:/cvsroot/Insight co -r $ITK_tag
InsightApplications
expect -c "
spawn cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK login;
expect \"CVS password:\";
send \"vtk\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK co -r $VTK_tag VTK
expect -c "
spawn cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTKData login;
expect \"CVS password:\";
send \"vtk\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTKData co -r $VTK_tag
VTKData
expect -c "
spawn cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 login;
expect \"CVS password:\";
send \"\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 co -r
$PARAVIEW_tag ParaView3
expect -c "
spawn cvs -d :pserver:anoncvs at www.kwwidgets.org:/cvsroot/KWWidgets login;
expect \"CVS password:\";
send \"\r\";
send_user \"\r\nDone CVS login\r\n\";
exit"
#cvs -d :pserver:anoncvs at www.kwwidgets.org:/cvsroot/KWWidgets co -r
$KWWIDGETS_tag KWWidgets
cvs -d :pserver:anoncvs at www.kwwidgets.org:/cvsroot/KWWidgets co KWWidgets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080818/f292cbee/attachment.htm>
More information about the vtkusers
mailing list