comparison tools/common.sh @ 388:5071b8511572

tools: Fixes for verification that seemed to be needed.
author Augie Fackler <durin42@gmail.com>
date Mon, 01 Jun 2009 11:10:32 -0500
parents 52cc0982dfcd
children
comparison
equal deleted inserted replaced
387:f6050c4dde31 388:5071b8511572
1 function verify_current_revision() 1 function verify_current_revision()
2 { 2 {
3 /bin/rm -rf * 3 /bin/rm -rf *
4 exportcmd="svn export `hg svn info 2> /dev/null | grep '^URL: ' | sed 's/URL: //'` -r`hg svn info | grep ^Revision | sed 's/.*: //;s/ .*//'` . --force" 4 exportcmd="svn export `hg svn info 2> /dev/null | grep '^URL: ' | sed 's/URL: //'`@`hg svn info | grep ^Revision | sed 's/.*: //;s/ .*//'` . --force"
5 `echo $exportcmd` > /dev/null 5 `echo $exportcmd` > /dev/null
6 x=$? 6 x=$?
7 if [[ "$x" != "0" ]] ; then 7 if [[ "$x" != "0" ]] ; then
8 echo $exportcmd 8 echo $exportcmd
9 echo 'export failed!' 9 echo 'export failed!'