#! /bin/sh /usr/share/dpatch/dpatch-run
## 14startup-loop.dpatch by  <james.westby@canonical.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Patch from Felipe Sateler to fix infinite loop on startup.
## DP: Ubuntu: https://bugs.launchpad.net/bugs/236251
## DP: Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476300
## DP: Upstream: http://sourceforge.net/tracker/index.php?func=detail&atid=430569&aid=2182608&group_id=41431

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cecilia-2.0.5~/lib/prefs.tcl cecilia-2.0.5/lib/prefs.tcl
--- cecilia-2.0.5~/lib/prefs.tcl	2010-09-20 16:59:06.232678033 +0200
+++ cecilia-2.0.5/lib/prefs.tcl	2010-09-20 16:59:06.364688126 +0200
@@ -187,7 +187,7 @@
 	set f [open $tmp r]
 	while ![eof $f] {
 	    set l [gets $f ]
-	    if [regexp Version $l] { break }
+	    if [regexp -nocase version $l] { break }
 	}	
 	
 	close $f
