comparison tools/common.sh @ 259:52cc0982dfcd

Fix the verify script which broke because of the change in parent.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 22:42:50 -0500
parents 3c87de482011
children 5071b8511572
comparison
equal deleted inserted replaced
258:4ab27ddbae51 259:52cc0982dfcd
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: //'` -`hg svn parent | sed 's/.*: //;s/ .*//'` . --force" 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"
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!'